Update chatNotificationSettings in chat info page

This commit is contained in:
jngibbon 2021-07-02 23:41:20 +02:00 committed by jgibbon
parent a1859c0333
commit fa9e0c7d54

View file

@ -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: {