Skip to content

Commit

Permalink
Fix: an issue where we display the default user icon for a known user
Browse files Browse the repository at this point in the history
  • Loading branch information
nimau committed Mar 21, 2023
1 parent 5c354f2 commit 2979f98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Riot/Modules/Pills/PillProvider.swift
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ struct PillProvider {
let isHighlighted = userId == session.myUserId

let avatar: PillTextAttachmentItem
if avatarUrl == nil {
if roomMember == nil && user == nil {
avatar = .asset(named: "pill_user",
parameters: .init(tintColor: PillAssetColor(uiColor: ThemeService.shared().theme.colors.secondaryContent),
rawRenderingMode: UIImage.RenderingMode.alwaysOriginal.rawValue,
Expand Down

0 comments on commit 2979f98

Please sign in to comment.