Add extra calling error modal

This commit is contained in:
Fedor Indutny
2025-10-10 14:09:18 -07:00
committed by GitHub
parent 41a6cfaf63
commit 9a8f8ffe5f
2 changed files with 20 additions and 0 deletions

View File

@@ -2121,6 +2121,14 @@
"messageformat": "Removed from call",
"description": "Title of error when in a call then a call admin removes you."
},
"icu:calling__has-max-devices": {
"messageformat": "The maximum number of participants has been reached for this call. Try again later.",
"description": "Error message when joining the call that already reached the maximum number of participants"
},
"icu:calling__has-max-devices--title": {
"messageformat": "Call is full",
"description": "Title of error when joining the call that already reached the maximum number of participants"
},
"icu:CallingLobby__CallLinkNotice": {
"messageformat": "Anyone who joins this call via the link will see your name and photo.",
"description": "Toast shown in call lobby before joining a call link call to inform user that profile info will be shared."

View File

@@ -1500,6 +1500,18 @@ function groupCallEnded(
});
return;
}
if (endedReason === GroupCallEndReason.HasMaxDevices) {
const i18n = getIntl(getState());
dispatch({
type: SHOW_ERROR_MODAL,
payload: {
title: i18n('icu:calling__has-max-devices--title'),
description: i18n('icu:calling__has-max-devices'),
buttonVariant: ButtonVariant.Primary,
},
});
return;
}
dispatch({ type: GROUP_CALL_ENDED, payload });
};