summary refs log tree commit diff
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2020-07-11 02:15:53 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2020-07-11 02:15:53 +0200
commit9479fcde0847cffa49217d86f0bf91f7d03440a2 (patch)
tree3aaf38c4f5228f1448be1670cfa23a105f9d9f2c
parentFix translation loading (diff)
downloadnheko-9479fcde0847cffa49217d86f0bf91f7d03440a2.tar.xz
Initialize Profile later
-rw-r--r--src/ChatPage.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ChatPage.cpp b/src/ChatPage.cpp
index 0b290927..3ef28c86 100644
--- a/src/ChatPage.cpp
+++ b/src/ChatPage.cpp
@@ -795,8 +795,6 @@ ChatPage::loadStateFromCache()
 
         nhlog::db()->info("restoring state from cache");
 
-        getProfileInfo();
-
         QtConcurrent::run([this]() {
                 try {
                         cache::restoreSessions();
@@ -829,6 +827,8 @@ ChatPage::loadStateFromCache()
                 nhlog::crypto()->info("ed25519   : {}", olm::client()->identity_keys().ed25519);
                 nhlog::crypto()->info("curve25519: {}", olm::client()->identity_keys().curve25519);
 
+                getProfileInfo();
+
                 // Start receiving events.
                 emit trySyncCb();
         });