From f7442619401fa789647101f56fdfbddaf4fc6796 Mon Sep 17 00:00:00 2001 From: Kitsune Ral Date: Mon, 23 Mar 2020 10:40:19 +0100 Subject: BaseJob: support M_USER_DEACTIVATED error code Backport for #344. --- lib/jobs/basejob.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib') diff --git a/lib/jobs/basejob.cpp b/lib/jobs/basejob.cpp index 5af37902..a6225c67 100644 --- a/lib/jobs/basejob.cpp +++ b/lib/jobs/basejob.cpp @@ -337,6 +337,9 @@ void BaseJob::gotReply() else if (errCode == "M_CANNOT_LEAVE_SERVER_NOTICE_ROOM") setStatus(IncorrectRequestError, tr("It's not allowed to leave a server notices room")); + else if (errCode == "M_USER_DEACTIVATED") + setStatus(ContentAccessError, + tr("The user has been deactivated")); else if (!json.isEmpty()) // Not localisable on the client side setStatus(d->status.code, json.value("error"_ls).toString()); } -- cgit v1.2.3