summary refs log tree commit diff
path: root/src/ChatPage.cpp
diff options
context:
space:
mode:
authorJoseph Donofry <joedonofry@gmail.com>2020-05-14 20:53:01 -0400
committerJoseph Donofry <joedonofry@gmail.com>2020-05-14 20:53:01 -0400
commit6d2789f4d5ffcd4e3e6ad8dfaae6925b0bf7d6ae (patch)
tree2ce43f344f002d2747f5f68b9d87b81873ed87ce /src/ChatPage.cpp
parentUpdate emoji picker and translations (diff)
parentMerge branch 'master' of ssh://github.com/Nheko-Reborn/nheko (diff)
downloadnheko-6d2789f4d5ffcd4e3e6ad8dfaae6925b0bf7d6ae.tar.xz
Merge master into reactions
Diffstat (limited to 'src/ChatPage.cpp')
-rw-r--r--src/ChatPage.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/ChatPage.cpp b/src/ChatPage.cpp

index 19339e59..bfefd7bb 100644 --- a/src/ChatPage.cpp +++ b/src/ChatPage.cpp
@@ -666,7 +666,7 @@ ChatPage::bootstrap(QString userid, QString homeserver, QString token) "This can have different reasons. Please open an " "issue and try to use an older version in the mean " "time. Alternatively you can try deleting the cache " - "manually")); + "manually.")); QCoreApplication::quit(); } loadStateFromCache(); @@ -994,8 +994,12 @@ ChatPage::trySync() const auto err_code = mtx::errors::to_string(err->matrix_error.errcode); const int status_code = static_cast<int>(err->status_code); - if (http::is_logged_in() && err->matrix_error.errcode == - mtx::errors::ErrorCode::M_UNKNOWN_TOKEN) { + if ((http::is_logged_in() && + (err->matrix_error.errcode == + mtx::errors::ErrorCode::M_UNKNOWN_TOKEN || + err->matrix_error.errcode == + mtx::errors::ErrorCode::M_MISSING_TOKEN)) || + !http::is_logged_in()) { emit dropToLoginPageCb(msg); return; } @@ -1086,7 +1090,7 @@ ChatPage::createRoom(const mtx::requests::CreateRoom &req) } emit showNotification( - tr("Room %1 created").arg(QString::fromStdString(res.room_id.to_string()))); + tr("Room %1 created.").arg(QString::fromStdString(res.room_id.to_string()))); }); }