From 1c4e7bc85d0ab3ec6e169b222b7ec93704238b16 Mon Sep 17 00:00:00 2001 From: ayumi-signal <143036029+ayumi-signal@users.noreply.github.com> Date: Mon, 9 Dec 2024 09:35:43 -0800 Subject: [PATCH] Fix profile display in direct call connecting state --- ts/components/CallScreen.tsx | 3 ++- ts/components/CallingPreCallInfo.tsx | 8 +++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ts/components/CallScreen.tsx b/ts/components/CallScreen.tsx index 635235f71..e38dc935d 100644 --- a/ts/components/CallScreen.tsx +++ b/ts/components/CallScreen.tsx @@ -805,13 +805,14 @@ export function CallScreen({ toggleSettings={toggleSettings} /> - {isRinging && ( + {(isConnecting || isRinging) && ( <>
diff --git a/ts/components/CallingPreCallInfo.tsx b/ts/components/CallingPreCallInfo.tsx index c843b9b53..895e803b7 100644 --- a/ts/components/CallingPreCallInfo.tsx +++ b/ts/components/CallingPreCallInfo.tsx @@ -55,6 +55,7 @@ export type PropsType = { > >; isCallFull?: boolean; + isConnecting?: boolean; peekedParticipants?: Array; }; @@ -63,6 +64,7 @@ export function CallingPreCallInfo({ groupMembers = [], i18n, isCallFull = false, + isConnecting = false, me, peekedParticipants = [], ringMode, @@ -79,7 +81,11 @@ export function CallingPreCallInfo({ let subtitle: string; if (ringMode === RingMode.IsRinging) { - subtitle = i18n('icu:outgoingCallRinging'); + if (isConnecting) { + subtitle = i18n('icu:outgoingCallConnecting'); + } else { + subtitle = i18n('icu:outgoingCallRinging'); + } } else if (isCallFull) { subtitle = i18n('icu:calling__call-is-full'); } else if (peekedParticipants.length) {