Update info for group call blocked participants

This commit is contained in:
ayumi-signal 2024-07-15 17:45:18 -07:00 committed by GitHub
parent 11a4b32270
commit 941304cd31
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 15 additions and 4 deletions

View file

@ -1863,10 +1863,18 @@
},
"icu:calling__you-have-blocked": {
"messageformat": "You have blocked {name}",
"description": "when you block someone and cannot view their video"
"description": "(Deleted 2024/07/15) when you block someone and cannot view their video"
},
"icu:calling__blocked-participant": {
"messageformat": "{name} is blocked",
"description": "Shown in a group call when you have blocked someone and cannot view their video."
},
"icu:calling__block-info-title": {
"messageformat": "{name} is blocked",
"description": "Title of modal dialog to describe how blocking works in a group call"
},
"icu:calling__block-info": {
"messageformat": "You won't receive their voice or video and they won't receive yours.",
"messageformat": "You wont receive their audio or video and they wont receive yours.",
"description": "Shown in the modal dialog to describe how blocking works in a group call"
},
"icu:calling__missing-media-keys": {

View file

@ -361,6 +361,9 @@ export const GroupCallRemoteParticipant: React.FC<PropsType> = React.memo(
noVideoNode = (
<>
<i className="module-ongoing-call__group-call-remote-participant__error-icon module-ongoing-call__group-call-remote-participant__error-icon--blocked" />
<div className="module-ongoing-call__group-call-remote-participant__error">
{i18n('icu:calling__blocked-participant', { name: title })}
</div>
{showDialogButton}
</>
);
@ -410,7 +413,7 @@ export const GroupCallRemoteParticipant: React.FC<PropsType> = React.memo(
<div className="module-ongoing-call__group-call-remote-participant__more-info-modal-title">
<I18n
i18n={i18n}
id="icu:calling__you-have-blocked"
id="icu:calling__block-info-title"
components={{
name: <ContactName key="name" title={title} />,
}}
@ -510,7 +513,7 @@ export const GroupCallRemoteParticipant: React.FC<PropsType> = React.memo(
)}
{noVideoNode && (
<CallBackgroundBlur
avatarUrl={avatarUrl}
avatarUrl={isBlocked ? undefined : avatarUrl}
className="module-ongoing-call__group-call-remote-participant-background"
>
{noVideoNode}