Initialize Profile later

This commit is contained in:
Nicolas Werner 2020-07-11 02:15:53 +02:00
parent da2f80df60
commit 9479fcde08

View file

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