summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2021-11-07 21:27:58 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2021-11-07 21:27:58 +0100
commit809be93e206e9ab75ab1f3e6c083a0b6ea37ce6e (patch)
treeeea85f126e4e19c379d57d585bb4b924e1b1dff7 /src
parentDon't try to load verification status before db is ready (diff)
downloadnheko-809be93e206e9ab75ab1f3e6c083a0b6ea37ce6e.tar.xz
Fix self verification status never updating
Diffstat (limited to 'src')
-rw-r--r--src/ChatPage.cpp1
-rw-r--r--src/encryption/SelfVerificationStatus.cpp3
2 files changed, 3 insertions, 1 deletions
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; }