fix: crash on chatmessages when using 5.15.2
This commit is contained in:
parent
2716abf096
commit
8d7a78389d
|
@ -33,12 +33,12 @@ SplitView {
|
|||
|
||||
ScrollView {
|
||||
id: root
|
||||
|
||||
contentItem: chatLogView
|
||||
|
||||
SplitView.fillWidth: true
|
||||
SplitView.minimumWidth: 200
|
||||
|
||||
height: parent.height
|
||||
ScrollBar.vertical.policy: chatLogView.contentHeight > chatLogView.height ? ScrollBar.AlwaysOn : ScrollBar.AlwaysOff
|
||||
ScrollBar.horizontal.policy: ScrollBar.AlwaysOff
|
||||
|
||||
|
@ -178,6 +178,14 @@ SplitView {
|
|||
return true
|
||||
}
|
||||
|
||||
Connections {
|
||||
target: chatsModel
|
||||
|
||||
onAppReady: {
|
||||
chatLogView.scrollToBottom(true)
|
||||
}
|
||||
}
|
||||
|
||||
Connections {
|
||||
target: chatsModel.messageView
|
||||
onMessagesLoaded: {
|
||||
|
@ -198,10 +206,6 @@ SplitView {
|
|||
}
|
||||
}
|
||||
|
||||
onAppReady: {
|
||||
chatLogView.scrollToBottom(true)
|
||||
}
|
||||
|
||||
onMessageNotificationPushed: function(chatId, msg, messageType, chatType, timestamp, identicon, username, hasMention, isAddedContact, channelName) {
|
||||
if (messageType == Constants.editType) return;
|
||||
if (appSettings.notificationSetting == Constants.notifyAllMessages ||
|
||||
|
|
Loading…
Reference in New Issue