Fix profile display in direct call connecting state
Co-authored-by: ayumi-signal <143036029+ayumi-signal@users.noreply.github.com>
This commit is contained in:
parent
06868a040d
commit
dc8c26d1c1
2 changed files with 9 additions and 2 deletions
|
@ -805,13 +805,14 @@ export function CallScreen({
|
|||
toggleSettings={toggleSettings}
|
||||
/>
|
||||
</div>
|
||||
{isRinging && (
|
||||
{(isConnecting || isRinging) && (
|
||||
<>
|
||||
<div className="module-CallingPreCallInfo-spacer " />
|
||||
<CallingPreCallInfo
|
||||
conversation={conversation}
|
||||
groupMembers={groupMembers}
|
||||
i18n={i18n}
|
||||
isConnecting={isConnecting}
|
||||
me={me}
|
||||
ringMode={RingMode.IsRinging}
|
||||
/>
|
||||
|
|
|
@ -55,6 +55,7 @@ export type PropsType = {
|
|||
>
|
||||
>;
|
||||
isCallFull?: boolean;
|
||||
isConnecting?: boolean;
|
||||
peekedParticipants?: Array<PeekedParticipantType>;
|
||||
};
|
||||
|
||||
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue