Fix profile display in direct call connecting state
This commit is contained in:
@@ -805,13 +805,14 @@ export function CallScreen({
|
|||||||
toggleSettings={toggleSettings}
|
toggleSettings={toggleSettings}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
{isRinging && (
|
{(isConnecting || isRinging) && (
|
||||||
<>
|
<>
|
||||||
<div className="module-CallingPreCallInfo-spacer " />
|
<div className="module-CallingPreCallInfo-spacer " />
|
||||||
<CallingPreCallInfo
|
<CallingPreCallInfo
|
||||||
conversation={conversation}
|
conversation={conversation}
|
||||||
groupMembers={groupMembers}
|
groupMembers={groupMembers}
|
||||||
i18n={i18n}
|
i18n={i18n}
|
||||||
|
isConnecting={isConnecting}
|
||||||
me={me}
|
me={me}
|
||||||
ringMode={RingMode.IsRinging}
|
ringMode={RingMode.IsRinging}
|
||||||
/>
|
/>
|
||||||
|
@@ -55,6 +55,7 @@ export type PropsType = {
|
|||||||
>
|
>
|
||||||
>;
|
>;
|
||||||
isCallFull?: boolean;
|
isCallFull?: boolean;
|
||||||
|
isConnecting?: boolean;
|
||||||
peekedParticipants?: Array<PeekedParticipantType>;
|
peekedParticipants?: Array<PeekedParticipantType>;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -63,6 +64,7 @@ export function CallingPreCallInfo({
|
|||||||
groupMembers = [],
|
groupMembers = [],
|
||||||
i18n,
|
i18n,
|
||||||
isCallFull = false,
|
isCallFull = false,
|
||||||
|
isConnecting = false,
|
||||||
me,
|
me,
|
||||||
peekedParticipants = [],
|
peekedParticipants = [],
|
||||||
ringMode,
|
ringMode,
|
||||||
@@ -79,7 +81,11 @@ export function CallingPreCallInfo({
|
|||||||
|
|
||||||
let subtitle: string;
|
let subtitle: string;
|
||||||
if (ringMode === RingMode.IsRinging) {
|
if (ringMode === RingMode.IsRinging) {
|
||||||
|
if (isConnecting) {
|
||||||
|
subtitle = i18n('icu:outgoingCallConnecting');
|
||||||
|
} else {
|
||||||
subtitle = i18n('icu:outgoingCallRinging');
|
subtitle = i18n('icu:outgoingCallRinging');
|
||||||
|
}
|
||||||
} else if (isCallFull) {
|
} else if (isCallFull) {
|
||||||
subtitle = i18n('icu:calling__call-is-full');
|
subtitle = i18n('icu:calling__call-is-full');
|
||||||
} else if (peekedParticipants.length) {
|
} else if (peekedParticipants.length) {
|
||||||
|
Reference in New Issue
Block a user