timeline: Load avatars asynchronously

Speeds up scrolling through the timeline.
This commit is contained in:
Kai Uwe Broulik
2024-12-25 21:39:58 +01:00
parent c92284ab02
commit 3eaef148fe
7 changed files with 7 additions and 0 deletions

View File

@@ -28,6 +28,7 @@ Flow {
name: displayName
source: avatarUrl
color: memberColor
asynchronous: true
}
}
QQC2.Label {

View File

@@ -49,6 +49,7 @@ TimelineDelegate {
name: root.author.displayName
source: root.author.avatarUrl
color: root.author.color
asynchronous: true
}
QQC2.Label {
Layout.fillWidth: true

View File

@@ -250,6 +250,7 @@ TimelineDelegate {
name: root.author.displayName
source: root.author.avatarUrl
color: root.author.color
asynchronous: true
QQC2.ToolTip.text: root.author.htmlSafeDisambiguatedName
onClicked: RoomManager.resolveResource(root.author.uri)

View File

@@ -40,6 +40,7 @@ RowLayout {
source: root.author.avatarUrl
name: root.author.displayName
color: root.author.color
asynchronous: true
}
QQC2.Label {
id: replyName

View File

@@ -49,6 +49,7 @@ RowLayout {
source: root.author?.avatarUrl ?? ""
name: root.author?.displayName ?? ""
color: root.author?.color ?? Kirigami.Theme.highlightColor
asynchronous: true
MouseArea {
anchors.fill: parent

View File

@@ -105,6 +105,7 @@ TimelineDelegate {
name: parent.modelData.displayName
source: parent.modelData.avatarUrl
color: parent.modelData.color
asynchronous: true
}
}
}

View File

@@ -36,6 +36,7 @@ TimelineDelegate {
name: root.room ? root.room.displayName : ""
source: root.room ? root.room.avatarMediaUrl : ""
asynchronous: true
Rectangle {
visible: room.usesEncryption