From bc7823fa0d96107b185bf0ead4835975f3e5c4f9 Mon Sep 17 00:00:00 2001 From: Pascal Precht Date: Wed, 24 Nov 2021 14:30:00 +0100 Subject: [PATCH] fix(@desktop/chat): ensure emoji selection works This broke in https://github.com/status-im/status-desktop/pull/4135 due to incorrect initialization of `recentEmojis` property in `localAccountSensitiveSettings`. Closes #4102 --- ui/main.qml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/ui/main.qml b/ui/main.qml index a9eaa0b2ef..7f8762c570 100644 --- a/ui/main.qml +++ b/ui/main.qml @@ -89,6 +89,18 @@ StatusWindow { mainModule.openStoreToKeychainPopup.connect(function(){ storeToKeychainConfirmationPopup.open() }) + if(localAccountSensitiveSettings.recentEmojis === "") { + localAccountSensitiveSettings.recentEmojis = []; + } + if (localAccountSensitiveSettings.whitelistedUnfurlingSites === "") { + localAccountSensitiveSettings.whitelistedUnfurlingSites = {}; + } + if (localAccountSensitiveSettings.hiddenCommunityWelcomeBanners === "") { + localAccountSensitiveSettings.hiddenCommunityWelcomeBanners = []; + } + if (localAccountSensitiveSettings.hiddenCommunityBackUpBanners === "") { + localAccountSensitiveSettings.hiddenCommunityBackUpBanners = []; + } } }