Prefix the user's own messages with 'You' in the room list. (#4022)

This commit is contained in:
Doug
2025-04-14 14:00:19 +01:00
committed by GitHub
parent 9d53b29902
commit 542dbd82b9
39 changed files with 118 additions and 44 deletions
@@ -12,6 +12,7 @@ import MatrixRustSDK
struct EventTimelineItemSDKMockConfiguration {
var eventID: String = UUID().uuidString
var sender = ""
var senderProfile: ProfileDetails?
var isOwn = false
var content: TimelineItemContent = .msgLike(content: .init(kind: .redacted, reactions: [], threadRoot: nil, inReplyTo: nil))
}
@@ -21,7 +22,7 @@ extension EventTimelineItem {
self.init(isRemote: true,
eventOrTransactionId: .eventId(eventId: configuration.eventID),
sender: configuration.sender,
senderProfile: .pending,
senderProfile: configuration.senderProfile ?? .pending,
isOwn: configuration.isOwn,
isEditable: false,
content: configuration.content,