Remove more needless usages of makeMediaUrl

This is only really needed in specific cases, e.g. localUser which isn't
attached to a connection and thus needs a little help. Notes for when
this is needed is added for future readers.

(cherry picked from commit ef953b7574)
This commit is contained in:
Joshua Goins
2024-11-16 12:29:35 -05:00
parent ae12c838bd
commit d5c3054da4
9 changed files with 18 additions and 12 deletions

View File

@@ -169,7 +169,7 @@ FormCard.FormCardPage {
id: userListItem
required property string userId
required property string avatar
required property url avatar
required property string name
required property int powerLevel
required property string powerLevelString
@@ -180,7 +180,7 @@ FormCard.FormCardPage {
KirigamiComponents.Avatar {
Layout.preferredWidth: Kirigami.Units.iconSizes.medium
Layout.preferredHeight: Kirigami.Units.iconSizes.medium
source: userListItem.avatar ? root.room.connection.makeMediaUrl(userListItem.avatar) : ""
source: userListItem.avatar
name: userListItem.name
}