diff options
Diffstat (limited to 'src/ChatPage.cc')
-rw-r--r-- | src/ChatPage.cc | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/ChatPage.cc b/src/ChatPage.cc index cffb2a46..e543cdf9 100644 --- a/src/ChatPage.cc +++ b/src/ChatPage.cc @@ -1084,7 +1084,7 @@ ChatPage::trySync() if (!http::v2::is_logged_in()) return; - emit dropToLoginPageCb(msg); + emit tryDelayedSyncCb(); return; } @@ -1095,16 +1095,16 @@ ChatPage::trySync() emit trySyncCb(); return; } - case 401: - case 403: { + default: { if (!http::v2::is_logged_in()) return; - emit dropToLoginPageCb(msg); - return; - } - default: { - emit tryDelayedSyncCb(); + if (err->matrix_error.errcode == + mtx::errors::ErrorCode::M_UNKNOWN_TOKEN) + emit dropToLoginPageCb(msg); + else + emit tryDelayedSyncCb(); + return; } } |