From fa9e0c7d5490a6536de851723b5c7799c0e70aed Mon Sep 17 00:00:00 2001 From: jngibbon Date: Fri, 2 Jul 2021 23:41:20 +0200 Subject: [PATCH] Update chatNotificationSettings in chat info page --- .../chatInformationPage/ChatInformationPageContent.qml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/qml/components/chatInformationPage/ChatInformationPageContent.qml b/qml/components/chatInformationPage/ChatInformationPageContent.qml index 654ef0a..bbfccc9 100644 --- a/qml/components/chatInformationPage/ChatInformationPageContent.qml +++ b/qml/components/chatInformationPage/ChatInformationPageContent.qml @@ -187,6 +187,14 @@ SilicaFlickable { chatInformationPage.chatInformation = newInformation } } + onChatNotificationSettingsUpdated: { + if (chatInformationPage.chatInformation.id.toString() === chatId) { + // set whole object to trigger change + var newInformation = chatInformation; + newInformation.notification_settings = chatNotificationSettings; + chatInformationPage.chatInformation = newInformation; + } + } } Component.onCompleted: {