v0.8.2: the chat list and header say just [GV], [MS] or [SIM]

Not "via [GV] (541) …": the tag alone, with the full number as its tooltip. Get info still says it in full (now [MS] for voip.ms too).
This commit is contained in:
2026-11-12 15:35:23 -08:00
parent 0b635cb7a1
commit e4936b7fc8
5 changed files with 18 additions and 7 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
{ {
"name": "voipms-desktop", "name": "voipms-desktop",
"productName": "bubble", "productName": "bubble",
"version": "0.8.1", "version": "0.8.2",
"description": "Signal-style desktop SMS client for voip.ms", "description": "Signal-style desktop SMS client for voip.ms",
"author": "trav <trav@teafry.me>", "author": "trav <trav@teafry.me>",
"private": true, "private": true,
Binary file not shown.
+1 -1
View File
@@ -307,7 +307,7 @@ export function ChatView({ conv, contact, contactMap, conversations, onOpen, nam
{smsDids.length > 1 && ( {smsDids.length > 1 && (
<span className="chat-via"> <span className="chat-via">
{group ? ' · ' : ''} {group ? ' · ' : ''}
<Via did={conv.did} gvNumber={gvNumber} /> <Via did={conv.did} gvNumber={gvNumber} tag />
</span> </span>
)} )}
</div> </div>
@@ -126,7 +126,7 @@ const ConversationRow = memo(function ConversationRow({
</div> </div>
{multiDid && ( {multiDid && (
<div className="row-via"> <div className="row-via">
<Via did={conv.did} gvNumber={gvNumber} /> <Via did={conv.did} gvNumber={gvNumber} tag />
</div> </div>
)} )}
</div> </div>
+15 -4
View File
@@ -1,8 +1,19 @@
import { formatNumber, SIM_DID } from '@shared/phone' import { formatNumber, SIM_DID } from '@shared/phone'
// "via <number>", with a GV tag when it's the Google Voice number. // Which of your numbers a chat goes through. In full ("via [GV] (541) …",
export function Via({ did, gvNumber }: { did: string; gvNumber?: string }) { // for Get info), or `tag` alone: [GV] Google Voice, [SIM] the Rabbit's SIM,
if (did === SIM_DID) // [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 (
<span className="gv-tag" title={full} aria-label={full}>
{sim ? 'SIM' : gv ? 'GV' : 'MS'}
</span>
)
if (sim)
return ( return (
<> <>
via <span className="gv-tag">SIM</span>Rabbit via <span className="gv-tag">SIM</span>Rabbit
@@ -10,7 +21,7 @@ export function Via({ did, gvNumber }: { did: string; gvNumber?: string }) {
) )
return ( return (
<> <>
via {did === gvNumber && <span className="gv-tag">GV</span>} via <span className="gv-tag">{gv ? 'GV' : 'MS'}</span>
{formatNumber(did)} {formatNumber(did)}
</> </>
) )