mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 15:45:11 +00:00
Prefix the user's own messages with 'You' in the room list. (#4022)
This commit is contained in:
@@ -17,7 +17,9 @@ struct RoomEventStringBuilder {
|
||||
func buildAttributedString(for eventItemProxy: EventTimelineItemProxy) -> AttributedString? {
|
||||
let sender = eventItemProxy.sender
|
||||
let isOutgoing = eventItemProxy.isOwn
|
||||
let displayName = if shouldDisambiguateDisplayNames {
|
||||
let displayName = if isOutgoing {
|
||||
L10n.commonYou
|
||||
} else if shouldDisambiguateDisplayNames {
|
||||
sender.disambiguatedDisplayName ?? sender.id
|
||||
} else {
|
||||
sender.displayName ?? sender.id
|
||||
|
||||
Reference in New Issue
Block a user