Internationalise M_TOO_LARGE error from Synapse
This commit is contained in:
parent
f30e919f9e
commit
3678e64f5d
3 changed files with 9 additions and 2 deletions
|
@ -49,6 +49,12 @@ 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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue