cheogram-www

created pr with cheogram-www/call-show-account.1 on 2026-10-27T03:40:44Z · by 9e834e0d
changed pr name to Show what account is in use for a call on the modals on 2026-10-27T03:41:28Z · by 9e834e0d
cmds
checkout latest patchset:
ssh pr.pico.sh pull cheogram-www:call-show-account | git am -3
checkout specific patchset revision:
ssh pr.pico.sh pull cheogram-www:call-show-account [rev] | git am -3
add changes to patch request:
git format-patch main --stdout | ssh pr.pico.sh cheogram-www:call-show-account
add comment to patch request:
ssh pr.pico.sh comment cheogram-www:call-show-account "lgtm!"
+33 -0 src/App.scss #
......@@ -1392,6 +1392,7 @@ section.cs-message {
13921392 h2 {
13931393 padding: 0;
13941394 font-size: 1.5em;
1395+ margin-bottom: 0;
13951396 }
13961397
13971398 img {
......@@ -1427,6 +1428,27 @@ section.cs-message {
14271428 justify-content: center;
14281429 margin-top: 1.5em;
14291430 }
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+ }
14301452 }
14311453
14321454 .h-card.profile {
......@@ -1715,6 +1737,17 @@ button.MuiFab-root {
17151737 }
17161738 }
17171739
1740+@keyframes call-indicator-pulse {
1741+ 0%,
1742+ 100% {
1743+ opacity: 1;
1744+ }
1745+
1746+ 50% {
1747+ opacity: 0.2;
1748+ }
1749+}
1750+
17181751 #ios {
17191752 img {
17201753 max-width: 80%;
+27 -2 src/components/Call.tsx #
......@@ -189,6 +189,21 @@ export const Call = ({
189189 : null;
190190 const callStatus = call?.callStatus();
191191
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+
192207 const getCallMedia = useEffectEvent(
193208 async (
194209 session: borogove.calls.InitiatedSession,
......@@ -468,10 +483,10 @@ export const Call = ({
468483 style={{ marginRight: "1em" }}
469484 />
470485 <AvatarWithPlaceholder
486+ className="call-participant"
471487 photoUri={callChat.getPhoto()}
472488 placeholderUri={callChat.getPlaceholder()}
473489 displayName={callChat.getDisplayName()}
474- style={{ display: "inline-block", marginRight: "1em" }}
475490 onClick={() =>
476491 navigate(
477492 href(
......@@ -481,7 +496,15 @@ export const Call = ({
481496 ),
482497 )
483498 }
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>
485508 <span
486509 style={{
487510 display: "inline-block",
......@@ -560,6 +583,7 @@ export const Call = ({
560583 {callStatus === borogove.calls.CallStatus.Failed &&
561584 "Failed to connect"}
562585 </h2>
586+ {callAccountIndicator}
563587
564588 <div className="h-card">
565589 <AvatarWithPlaceholder
......@@ -618,6 +642,7 @@ export const Call = ({
618642 />
619643
620644 <h2>Incoming call</h2>
645+ {callAccountIndicator}
621646
622647 <div className="h-card">
623648 <AvatarWithPlaceholder
Back to top