diff --git a/package.json b/package.json index 193f1b6..ba39c86 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "voipms-desktop", "productName": "bubble", - "version": "0.8.1", + "version": "0.8.2", "description": "Signal-style desktop SMS client for voip.ms", "author": "trav ", "private": true, diff --git a/resources/android/VoipMessages.apk b/resources/android/VoipMessages.apk index ed75864..b13ea84 100644 Binary files a/resources/android/VoipMessages.apk and b/resources/android/VoipMessages.apk differ diff --git a/src/renderer/src/components/ChatView.tsx b/src/renderer/src/components/ChatView.tsx index c9ffab8..2cd86db 100644 --- a/src/renderer/src/components/ChatView.tsx +++ b/src/renderer/src/components/ChatView.tsx @@ -307,7 +307,7 @@ export function ChatView({ conv, contact, contactMap, conversations, onOpen, nam {smsDids.length > 1 && ( {group ? ' · ' : ''} - + )} diff --git a/src/renderer/src/components/ConversationList.tsx b/src/renderer/src/components/ConversationList.tsx index 6b42db2..ef79a44 100644 --- a/src/renderer/src/components/ConversationList.tsx +++ b/src/renderer/src/components/ConversationList.tsx @@ -126,7 +126,7 @@ const ConversationRow = memo(function ConversationRow({ {multiDid && (
- +
)} diff --git a/src/renderer/src/components/Via.tsx b/src/renderer/src/components/Via.tsx index 701336c..33acb71 100644 --- a/src/renderer/src/components/Via.tsx +++ b/src/renderer/src/components/Via.tsx @@ -1,8 +1,19 @@ import { formatNumber, SIM_DID } from '@shared/phone' -// "via ", with a GV tag when it's the Google Voice number. -export function Via({ did, gvNumber }: { did: string; gvNumber?: string }) { - if (did === SIM_DID) +// Which of your numbers a chat goes through. In full ("via [GV] (541) …", +// for Get info), or `tag` alone: [GV] Google Voice, [SIM] the Rabbit's SIM, +// [MS] voip.ms, with the full form as its tooltip (the list and the header). +export function Via({ did, gvNumber, tag }: { did: string; gvNumber?: string; tag?: boolean }) { + const sim = did === SIM_DID + const gv = did === gvNumber + const full = sim ? 'via Rabbit SIM' : `via ${gv ? 'Google Voice ' : 'voip.ms '}${formatNumber(did)}` + if (tag) + return ( + + {sim ? 'SIM' : gv ? 'GV' : 'MS'} + + ) + if (sim) return ( <> via SIMRabbit @@ -10,7 +21,7 @@ export function Via({ did, gvNumber }: { did: string; gvNumber?: string }) { ) return ( <> - via {did === gvNumber && GV} + via {gv ? 'GV' : 'MS'} {formatNumber(did)} )