From 7404ccf64a0b81141b25c711f41a6ebbc4fde126 Mon Sep 17 00:00:00 2001 From: Julien Wadel Date: Thu, 19 Oct 2023 16:11:28 +0200 Subject: [PATCH] Load conversations before doing redirections on message notification. This way avoid to display empty conversations. --- .../Linphone/Notifications/NotificationReceivedMessage.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/linphone-app/ui/modules/Linphone/Notifications/NotificationReceivedMessage.qml b/linphone-app/ui/modules/Linphone/Notifications/NotificationReceivedMessage.qml index 80b0afb3e..dcd9d45e5 100644 --- a/linphone-app/ui/modules/Linphone/Notifications/NotificationReceivedMessage.qml +++ b/linphone-app/ui/modules/Linphone/Notifications/NotificationReceivedMessage.qml @@ -98,14 +98,14 @@ Notification { onClicked: notification._close(function () { AccountSettingsModel.setDefaultAccountFromSipAddress(notification.localAddress) + App.smartShowWindow(notification.notificationData.window) + notification.notificationData.window.setView('Conversations') var chatroom = notification.timelineModel.getChatRoomModel() console.debug("Load conversation from notification: "+chatroom) if(!notification.timelineModel.selected)// Check to avoid reloading notification.timelineModel.selected = true if(chatroom && notification.messageId) chatroom.displayMessageIdRequested(notification.messageId) - App.smartShowWindow(notification.notificationData.window) - notification.notificationData.window.setView('Conversations') }) } }