diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2019-09-07 22:22:07 +0200 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2019-11-23 20:06:14 +0100 |
commit | ebeb1eb7721f357b016f6e914509918b6bee5356 (patch) | |
tree | 57ab5d3588cf6d01b497cba762056ea132044cf6 /resources/qml/TimelineView.qml | |
parent | Fix new messages not arriving in qml timeline (diff) | |
download | nheko-ebeb1eb7721f357b016f6e914509918b6bee5356.tar.xz |
Implement avatars in qml timeline
Diffstat (limited to 'resources/qml/TimelineView.qml')
-rw-r--r-- | resources/qml/TimelineView.qml | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/resources/qml/TimelineView.qml b/resources/qml/TimelineView.qml index 5f068e57..0151686a 100644 --- a/resources/qml/TimelineView.qml +++ b/resources/qml/TimelineView.qml @@ -181,10 +181,11 @@ Rectangle { Row { height: userName.height spacing: 4 - Rectangle { + Avatar { width: 48 height: 48 - color: "green" + url: chat.model.avatarUrl(section.split(" ")[0]).replace("mxc://", "image://MxcImage/") + displayName: chat.model.displayName(section.split(" ")[0]) } Text { |