diff --git a/src/components/structures/RoomStatusBar.js b/src/components/structures/RoomStatusBar.js index 9aa77e695a8..941cab4dda2 100644 --- a/src/components/structures/RoomStatusBar.js +++ b/src/components/structures/RoomStatusBar.js @@ -309,10 +309,14 @@ module.exports = React.createClass({ ); } else { let consentError = null; + let mauError = null; for (const m of unsentMessages) { if (m.error && m.error.errcode === 'M_CONSENT_NOT_GIVEN') { consentError = m.error; break; + } else if (m.error && m.error.errcode === 'M_MAU_LIMIT_EXCEEDED') { + mauError = m.error; + break; } } if (consentError) { @@ -327,6 +331,8 @@ module.exports = React.createClass({ , }, ); + } else if (mauError) { + title = _t("Your message wasn’t sent because this homeserver has hit its Monthly Active User Limit. Please contact your service administrator to continue using the service."); } else if ( unsentMessages.length === 1 && unsentMessages[0].error && diff --git a/src/i18n/strings/en_EN.json b/src/i18n/strings/en_EN.json index 2bd7be4cedf..8270f8b2140 100644 --- a/src/i18n/strings/en_EN.json +++ b/src/i18n/strings/en_EN.json @@ -1035,6 +1035,7 @@ "Message not sent due to unknown devices being present": "Message not sent due to unknown devices being present", "Show devices, send anyway or cancel.": "Show devices, send anyway or cancel.", "You can't send any messages until you review and agree to our terms and conditions.": "You can't send any messages until you review and agree to our terms and conditions.", + "Your message wasn’t sent because this homeserver has hit its Monthly Active User Limit. Please contact your service administrator to continue using the service.": "Your message wasn’t sent because this homeserver has hit its Monthly Active User Limit. Please contact your service administrator to continue using the service.", "%(count)s of your messages have not been sent.|other": "Some of your messages have not been sent.", "%(count)s of your messages have not been sent.|one": "Your message was not sent.", "%(count)s Resend all or cancel all now. You can also select individual messages to resend or cancel.|other": "Resend all or cancel all now. You can also select individual messages to resend or cancel.",