From 809be93e206e9ab75ab1f3e6c083a0b6ea37ce6e Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Sun, 7 Nov 2021 21:27:58 +0100 Subject: [PATCH] Fix self verification status never updating --- src/ChatPage.cpp | 1 + src/encryption/SelfVerificationStatus.cpp | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ChatPage.cpp b/src/ChatPage.cpp index eec8a4d1..0b8f2301 100644 --- a/src/ChatPage.cpp +++ b/src/ChatPage.cpp @@ -373,6 +373,7 @@ ChatPage::bootstrap(QString userid, QString homeserver, QString token) getBackupVersion(); tryInitialSync(); callManager_->refreshTurnServer(); + emit MainWindow::instance()->reload(); }); connect(cache::client(), diff --git a/src/encryption/SelfVerificationStatus.cpp b/src/encryption/SelfVerificationStatus.cpp index 5fa8d831..3ddbc7e6 100644 --- a/src/encryption/SelfVerificationStatus.cpp +++ b/src/encryption/SelfVerificationStatus.cpp @@ -258,7 +258,8 @@ SelfVerificationStatus::invalidate() using namespace mtx::secret_storage; nhlog::db()->info("Invalidating self verification status"); - if (cache::isInitialized()) { + if (!cache::isInitialized()) { + nhlog::db()->warn("SelfVerificationStatus: cache not initialized"); return; }