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:
+1
-1
@@ -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 <trav@teafry.me>",
|
||||
"private": true,
|
||||
|
||||
Binary file not shown.
@@ -307,7 +307,7 @@ export function ChatView({ conv, contact, contactMap, conversations, onOpen, nam
|
||||
{smsDids.length > 1 && (
|
||||
<span className="chat-via">
|
||||
{group ? ' · ' : ''}
|
||||
<Via did={conv.did} gvNumber={gvNumber} />
|
||||
<Via did={conv.did} gvNumber={gvNumber} tag />
|
||||
</span>
|
||||
)}
|
||||
</div>
|
||||
|
||||
@@ -126,7 +126,7 @@ const ConversationRow = memo(function ConversationRow({
|
||||
</div>
|
||||
{multiDid && (
|
||||
<div className="row-via">
|
||||
<Via did={conv.did} gvNumber={gvNumber} />
|
||||
<Via did={conv.did} gvNumber={gvNumber} tag />
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
|
||||
@@ -1,8 +1,19 @@
|
||||
import { formatNumber, SIM_DID } from '@shared/phone'
|
||||
|
||||
// "via <number>", 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 (
|
||||
<span className="gv-tag" title={full} aria-label={full}>
|
||||
{sim ? 'SIM' : gv ? 'GV' : 'MS'}
|
||||
</span>
|
||||
)
|
||||
if (sim)
|
||||
return (
|
||||
<>
|
||||
via <span className="gv-tag">SIM</span>Rabbit
|
||||
@@ -10,7 +21,7 @@ export function Via({ did, gvNumber }: { did: string; gvNumber?: string }) {
|
||||
)
|
||||
return (
|
||||
<>
|
||||
via {did === gvNumber && <span className="gv-tag">GV</span>}
|
||||
via <span className="gv-tag">{gv ? 'GV' : 'MS'}</span>
|
||||
{formatNumber(did)}
|
||||
</>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user