mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 15:45:11 +00:00
hide invite avatars when such flag is on
This affects: - Invited room preview inviter avatar - Invited room preview room avatar - Invited room cell inviter avatar in the room list - Invited room cell room avatar in the room list - Push notification for an invite
This commit is contained in:
@@ -38,12 +38,13 @@ struct RoomInviterDetails: Equatable {
|
||||
|
||||
struct RoomInviterLabel: View {
|
||||
let inviter: RoomInviterDetails
|
||||
var shouldHideAvatar = false
|
||||
|
||||
let mediaProvider: MediaProviderProtocol?
|
||||
|
||||
var body: some View {
|
||||
HStack(alignment: .firstTextBaseline, spacing: 8) {
|
||||
LoadableAvatarImage(url: inviter.avatarURL,
|
||||
LoadableAvatarImage(url: shouldHideAvatar ? nil : inviter.avatarURL,
|
||||
name: inviter.displayName,
|
||||
contentID: inviter.id,
|
||||
avatarSize: .custom(16),
|
||||
|
||||
Reference in New Issue
Block a user