Don't load empty images from imageprovider
Previously, when there was no avatar set, the source property of Avatar was still set to 'image://mxc/', which caused Avatar to load that from the imageprovider. The imageprovider can't provide an empty image and aborts with error
This commit is contained in:
@@ -52,7 +52,7 @@ RowLayout {
|
||||
|
||||
visible: showAuthor && Config.showAvatarInTimeline
|
||||
name: author.displayName
|
||||
source: author.avatarMediaId ? "image://mxc/" + author.avatarMediaId : ""
|
||||
source: author.avatarMediaId ? ("image://mxc/" + author.avatarMediaId) : ""
|
||||
color: author.color
|
||||
|
||||
Component {
|
||||
|
||||
Reference in New Issue
Block a user