fix(@desktop/onboarding): fix crash when restoring keys

fixes #3191
This commit is contained in:
Anthony Laibe 2021-08-10 15:11:31 +02:00
parent 992828b0c3
commit 7f3810b67a
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ proc init*(self: ProfileController, account: Account) =
let appearance = self.status.settings.getSetting[:int](Setting.Appearance) let appearance = self.status.settings.getSetting[:int](Setting.Appearance)
let messagesFromContactsOnly = self.status.settings.getSetting[:bool](Setting.MessagesFromContactsOnly) let messagesFromContactsOnly = self.status.settings.getSetting[:bool](Setting.MessagesFromContactsOnly)
let sendUserStatus = self.status.settings.getSetting[:bool](Setting.SendUserStatus) 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.appearance = appearance
profile.id = pubKey profile.id = pubKey