Fix room message.
This commit is contained in:
@@ -94,7 +94,7 @@ Item {
|
||||
id: messageEventModel
|
||||
room: currentRoom
|
||||
|
||||
onModelReset: currentRoom.getPreviousContent(50)
|
||||
onRoomChanged: if (room.timelineSize === 0) room.getPreviousContent(50)
|
||||
}
|
||||
|
||||
delegate: Row {
|
||||
@@ -138,10 +138,13 @@ Item {
|
||||
anchors.fill: parent
|
||||
anchors.margins: 12
|
||||
wrapMode: Label.Wrap
|
||||
textFormat: Text.RichText
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
onAtYBeginningChanged: if (atYBeginning && currentRoom) currentRoom.getPreviousContent(50)
|
||||
|
||||
ScrollBar.vertical: ScrollBar { /*anchors.left: messageListView.right*/ }
|
||||
|
||||
Behavior on contentY {
|
||||
|
||||
Reference in New Issue
Block a user