Fix self verification status never updating

This commit is contained in:
Nicolas Werner 2021-11-07 21:27:58 +01:00
parent 7de24a4271
commit 809be93e20
No known key found for this signature in database
GPG key ID: C8D75E610773F2D9
2 changed files with 3 additions and 1 deletions

View file

@ -373,6 +373,7 @@ ChatPage::bootstrap(QString userid, QString homeserver, QString token)
getBackupVersion();
tryInitialSync();
callManager_->refreshTurnServer();
emit MainWindow::instance()->reload();
});
connect(cache::client(),

View file

@ -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;
}