mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-17 11:28:07 +00:00
Load conversations before doing redirections on message notification. This way avoid to display empty conversations.
This commit is contained in:
parent
34ec7c494e
commit
7404ccf64a
1 changed files with 2 additions and 2 deletions
|
|
@ -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')
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue