Prefetch messages when adding room && wire setting.
This commit is contained in:
@@ -92,8 +92,6 @@ Item {
|
||||
model: MessageEventModel{
|
||||
id: messageEventModel
|
||||
room: currentRoom
|
||||
|
||||
onRoomChanged: room.timelineSize === 0 ? room.getPreviousContent(50) : {}
|
||||
}
|
||||
|
||||
delegate: MessageDelegate {}
|
||||
|
||||
@@ -12,7 +12,7 @@ import "qrc:/qml/component"
|
||||
Item {
|
||||
property alias listModel: roomListProxyModel.sourceModel
|
||||
property int currentIndex: roomListProxyModel.mapToSource(listView.currentIndex)
|
||||
readonly property bool mini: settingPage.miniMode // Used as an indicator of whether the listform should be displayed as "Mini mode".
|
||||
readonly property bool mini: setting.miniMode // Used as an indicator of whether the listform should be displayed as "Mini mode".
|
||||
|
||||
ColumnLayout {
|
||||
anchors.fill: parent
|
||||
|
||||
Reference in New Issue
Block a user