diff options
author | Ville Ranki <ville.ranki@iki.fi> | 2019-04-04 11:45:41 +0300 |
---|---|---|
committer | Ville Ranki <ville.ranki@iki.fi> | 2019-05-31 17:01:29 +0300 |
commit | 26c51455901a6c0112531d86d61d65d31a70dfaa (patch) | |
tree | 634a7ebc9731daf130b8d65f7fb1e522295ce882 /lib/jobs/basejob.cpp | |
parent | 4fdc2af2505da55d384be7d312540d1cbd79aaf8 (diff) | |
download | libquotient-26c51455901a6c0112531d86d61d65d31a70dfaa.tar.gz libquotient-26c51455901a6c0112531d86d61d65d31a70dfaa.zip |
Ignore some errors on leaving rooms, add new error enum. Fixes #307
Diffstat (limited to 'lib/jobs/basejob.cpp')
-rw-r--r-- | lib/jobs/basejob.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/jobs/basejob.cpp b/lib/jobs/basejob.cpp index 0d9b9f10..97b5a904 100644 --- a/lib/jobs/basejob.cpp +++ b/lib/jobs/basejob.cpp @@ -325,6 +325,9 @@ void BaseJob::gotReply() d->status.code = UserConsentRequiredError; d->errorUrl = json.value("consent_uri"_ls).toString(); } + else if (errCode == "M_UNKNOWN") { + d->status.code = UnknownObjectError; + } else if (errCode == "M_UNSUPPORTED_ROOM_VERSION" || errCode == "M_INCOMPATIBLE_ROOM_VERSION") { |