Improve display of unknown contacts in call links

This commit is contained in:
ayumi-signal 2024-06-10 14:12:45 -07:00 committed by GitHub
parent 7e31b37417
commit 33ec40d7b4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 506 additions and 146 deletions

View file

@ -51,6 +51,7 @@ export type PropsType = {
| 'type'
| 'unblurredAvatarPath'
>;
getIsSharingPhoneNumberWithEverybody: () => boolean;
groupMembers?: Array<
Pick<
ConversationType,
@ -64,7 +65,6 @@ export type PropsType = {
isAdhocJoinRequestPending: boolean;
isConversationTooBigToRing: boolean;
isCallFull?: boolean;
isSharingPhoneNumberWithEverybody: boolean;
me: Readonly<
Pick<ConversationType, 'avatarPath' | 'color' | 'id' | 'serviceId'>
>;
@ -94,7 +94,7 @@ export function CallingLobby({
isAdhocJoinRequestPending,
isCallFull = false,
isConversationTooBigToRing,
isSharingPhoneNumberWithEverybody,
getIsSharingPhoneNumberWithEverybody,
me,
onCallCanceled,
onJoinCall,
@ -333,7 +333,7 @@ export function CallingLobby({
</div>
) : (
<div className="CallingLobby__CallLinkNotice">
{isSharingPhoneNumberWithEverybody
{getIsSharingPhoneNumberWithEverybody()
? i18n('icu:CallingLobby__CallLinkNotice--phone-sharing')
: i18n('icu:CallingLobby__CallLinkNotice')}
</div>