Recycle chat pages if possible when switching room
The chat page is complex and slow to create, which creates a visible lag when user switches room. Instead of throwing the pre-switch one away and making a new one from scratch, keep the same page and update its user & room ID for a big improvement in responsiveness. The rest is automatic thanks to QML property bindings.
This commit is contained in:
@@ -224,7 +224,7 @@ HListView {
|
||||
|
||||
Timer {
|
||||
id: showItemLimiter
|
||||
interval: 200
|
||||
interval: 100
|
||||
onTriggered: showItemAtIndex()
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user