From 7f3810b67a9e04e2c64c71d05d42cd1c02c78a55 Mon Sep 17 00:00:00 2001 From: Anthony Laibe Date: Tue, 10 Aug 2021 15:11:31 +0200 Subject: [PATCH] fix(@desktop/onboarding): fix crash when restoring keys fixes #3191 --- src/app/profile/core.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/profile/core.nim b/src/app/profile/core.nim index db0ae5e01c..cd883c59b2 100644 --- a/src/app/profile/core.nim +++ b/src/app/profile/core.nim @@ -41,7 +41,7 @@ proc init*(self: ProfileController, account: Account) = let appearance = self.status.settings.getSetting[:int](Setting.Appearance) let messagesFromContactsOnly = self.status.settings.getSetting[:bool](Setting.MessagesFromContactsOnly) let sendUserStatus = self.status.settings.getSetting[:bool](Setting.SendUserStatus) - let currentUserStatus = self.status.settings.getSetting[:JsonNode](Setting.CurrentUserStatus)["statusType"].getInt() + let currentUserStatus = self.status.settings.getSetting[:JsonNode](Setting.CurrentUserStatus){"statusType"}.getInt() profile.appearance = appearance profile.id = pubKey