cheogram-www
created pr with
cheogram-www/call-show-account.1
changed pr name to
Show what account is in use for a call on the modals
cmds
checkout latest patchset:
ssh pr.pico.sh pull cheogram-www:call-show-account | git am -3checkout specific patchset revision:
ssh pr.pico.sh pull cheogram-www:call-show-account [rev] | git am -3add changes to patch request:
git format-patch main --stdout | ssh pr.pico.sh cheogram-www:call-show-accountadd comment to patch request:
ssh pr.pico.sh comment cheogram-www:call-show-account "lgtm!"
Patchset
cheogram-www/call-show-account.1
Show what account is in use for a call on the modals
Stephen Paul Weber
2026-10-27T03:40:19ZSemantic diff summary
0 added,
5 modified,
0 signature changed,
0 removed
across 1 analyzed file
(1 file skipped: unsupported file type)
+33
-0
src/App.scss
#
| ... | ... | @@ -1427,6 +1428,27 @@ section.cs-message { | |
| 1427 | 1428 | justify-content: center; | |
| 1428 | 1429 | margin-top: 1.5em; | |
| 1429 | 1430 | } | |
| 1431 | + | ||
| 1432 | + | .call-account { | |
| 1433 | + | display: flex; | |
| 1434 | + | align-items: center; | |
| 1435 | + | justify-content: center; | |
| 1436 | + | gap: 0.5em; | |
| 1437 | + | font-size: 0.85em; | |
| 1438 | + | line-height: 1; | |
| 1439 | + | } | |
| 1440 | + | ||
| 1441 | + | .call-participant { | |
| 1442 | + | display: inline-block; | |
| 1443 | + | margin-right: 1em; | |
| 1444 | + | ||
| 1445 | + | .call-participant-account { | |
| 1446 | + | position: absolute; | |
| 1447 | + | right: -1.5px; | |
| 1448 | + | bottom: calc(3% - 0.5px); | |
| 1449 | + | animation: call-indicator-pulse 1.5s ease-in-out infinite; | |
| 1450 | + | } | |
| 1451 | + | } | |
| 1430 | 1452 | } | |
| 1431 | 1453 | ||
| 1432 | 1454 | .h-card.profile { |
+27
-2
src/components/Call.tsx
#
| ... | ... | @@ -189,6 +189,21 @@ export const Call = ({ | |
| 189 | 189 | : null; | |
| 190 | 190 | const callStatus = call?.callStatus(); | |
| 191 | 191 | ||
| 192 | + | const callAccountSelfChat = callAccountId | |
| 193 | + | ? accounts[callAccountId]?.client?.getChat(callAccountId) | |
| 194 | + | : null; | |
| 195 | + | const callAccountIndicator = callAccountId ? ( | |
| 196 | + | <div className="call-account" title={`Account: ${callAccountId}`}> | |
| 197 | + | <AvatarWithPlaceholder | |
| 198 | + | aria-hidden={true} | |
| 199 | + | size="xs" | |
| 200 | + | placeholderUri={callAccountSelfChat?.getPlaceholder()} | |
| 201 | + | photoUri={callAccountSelfChat?.getPhoto()} | |
| 202 | + | /> | |
| 203 | + | <span>for {callAccountSelfChat?.getDisplayName()}</span> | |
| 204 | + | </div> | |
| 205 | + | ) : null; | |
| 206 | + | ||
| 192 | 207 | const getCallMedia = useEffectEvent( | |
| 193 | 208 | async ( | |
| 194 | 209 | session: borogove.calls.InitiatedSession, |
| ... | ... | @@ -468,10 +483,10 @@ export const Call = ({ | |
| 468 | 483 | style={{ marginRight: "1em" }} | |
| 469 | 484 | /> | |
| 470 | 485 | <AvatarWithPlaceholder | |
| 486 | + | className="call-participant" | |
| 471 | 487 | photoUri={callChat.getPhoto()} | |
| 472 | 488 | placeholderUri={callChat.getPlaceholder()} | |
| 473 | 489 | displayName={callChat.getDisplayName()} | |
| 474 | - | style={{ display: "inline-block", marginRight: "1em" }} | |
| 475 | 490 | onClick={() => | |
| 476 | 491 | navigate( | |
| 477 | 492 | href( |
| ... | ... | @@ -481,7 +496,15 @@ export const Call = ({ | |
| 481 | 496 | ), | |
| 482 | 497 | ) | |
| 483 | 498 | } | |
| 484 | - | /> | |
| 499 | + | > | |
| 500 | + | <AvatarWithPlaceholder | |
| 501 | + | className="call-participant-account" | |
| 502 | + | size="xs" | |
| 503 | + | displayName={`Account: ${callAccountId}`} | |
| 504 | + | placeholderUri={callAccountSelfChat?.getPlaceholder()} | |
| 505 | + | photoUri={callAccountSelfChat?.getPhoto()} | |
| 506 | + | /> | |
| 507 | + | </AvatarWithPlaceholder> | |
| 485 | 508 | <span | |
| 486 | 509 | style={{ | |
| 487 | 510 | display: "inline-block", |