You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Implement a message for user account suspension, as per MSC3823.
Users may have their account temporarily suspended from a homeserver,
e.g. due to ToS violations. This prevents them from sending new messages
but not from logging, reading messages or redacting their own messages.
This patch displays an error message comparable to "some of your messages have not been sent".
See matrix-org/synapse#12845 for more details.
Notes: Support for MSC3823. Display an error message if the user's account has been suspended.
// Normally, all account suspension errors should contain a field `href` with details.
244
+
title=_t(
245
+
"Your message wasn't sent because your user account on %(homeserverDomain)s has been suspended. Please see <detailsLink>this page</detailsLink> for more details on why your account was suspended and for information on getting it restored.",
// ...just in case, let's display a less useful error message if `href` is missing.
258
+
title=_t(
259
+
"Your message wasn't sent because your user account on %(homeserverDomain)s has been suspended. Please get in touch with the administrator of %(homeserverDomain)s for more details.",
260
+
{
261
+
homeserverDomain,
262
+
},
263
+
);
264
+
}
234
265
}else{
235
266
title=_t('Some of your messages have not been sent');
Copy file name to clipboardexpand all lines: src/i18n/strings/en_EN.json
+2
Original file line number
Diff line number
Diff line change
@@ -3015,6 +3015,8 @@
3015
3015
"Your message wasn't sent because this homeserver has hit its Monthly Active User Limit. Please <a>contact your service administrator</a> to continue using the service.": "Your message wasn't sent because this homeserver has hit its Monthly Active User Limit. Please <a>contact your service administrator</a> to continue using the service.",
3016
3016
"Your message wasn't sent because this homeserver has been blocked by it's administrator. Please <a>contact your service administrator</a> to continue using the service.": "Your message wasn't sent because this homeserver has been blocked by it's administrator. Please <a>contact your service administrator</a> to continue using the service.",
3017
3017
"Your message wasn't sent because this homeserver has exceeded a resource limit. Please <a>contact your service administrator</a> to continue using the service.": "Your message wasn't sent because this homeserver has exceeded a resource limit. Please <a>contact your service administrator</a> to continue using the service.",
3018
+
"Your message wasn't sent because your user account on %(homeserverDomain)s has been suspended. Please see <detailsLink>this page</detailsLink> for more details on why your account was suspended and for information on getting it restored.": "Your message wasn't sent because your user account on %(homeserverDomain)s has been suspended. Please see <detailsLink>this page</detailsLink> for more details on why your account was suspended and for information on getting it restored.",
3019
+
"Your message wasn't sent because your user account on %(homeserverDomain)s has been suspended. Please get in touch with the administrator of %(homeserverDomain)s for more details.": "Your message wasn't sent because your user account on %(homeserverDomain)s has been suspended. Please get in touch with the administrator of %(homeserverDomain)s for more details.",
3018
3020
"Some of your messages have not been sent": "Some of your messages have not been sent",
0 commit comments