Load conversations before doing redirections on message notification. This way avoid to display empty conversations.

This commit is contained in:
Julien Wadel 2023-10-19 16:11:28 +02:00
parent 34ec7c494e
commit 7404ccf64a

View file

@ -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')
})
}
}