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

@@ -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 });
};