Update info of group call blocked participants

This commit is contained in:
ayumi-signal 2024-07-16 10:26:25 -07:00 committed by GitHub
parent 79a7f05aa9
commit b92b6b0cb0
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": { "icu:calling__you-have-blocked": {
"messageformat": "You have blocked {name}", "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": { "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" "description": "Shown in the modal dialog to describe how blocking works in a group call"
}, },
"icu:calling__missing-media-keys": { "icu:calling__missing-media-keys": {

View file

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