Redesign "failed to send messages" status bar

This commit is contained in:
Travis Ralston 2021-04-21 13:49:58 -06:00
parent 5b8cd10ee5
commit 91b3688feb
8 changed files with 177 additions and 78 deletions

View file

@ -49,12 +49,6 @@ export function messageForResourceLimitError(limitType, adminContact, strings, e
}
}
export function messageForSendError(errorData) {
if (errorData.errcode === "M_TOO_LARGE") {
return _t("The message you are trying to send is too large.");
}
}
export function messageForSyncError(err) {
if (err.errcode === 'M_RESOURCE_LIMIT_EXCEEDED') {
const limitError = messageForResourceLimitError(