Refactor the RoomMessageEventStringBuilder to take a Style instead of a Destination
This make its usage clearer and makes different styles reusable
This commit is contained in:
committed by
Stefan Ceriu
parent
644a79aa5f
commit
0104ad06aa
@@ -1332,7 +1332,8 @@ private struct ClientProxyServices {
|
||||
let roomListService = syncService.roomListService()
|
||||
|
||||
let roomMessageEventStringBuilder = RoomMessageEventStringBuilder(attributedStringBuilder: AttributedStringBuilder(cacheKey: "roomList",
|
||||
mentionBuilder: PlainMentionBuilder()), destination: .roomList)
|
||||
mentionBuilder: PlainMentionBuilder()),
|
||||
style: .senderPrefixed)
|
||||
let eventStringBuilder = try RoomEventStringBuilder(stateEventStringBuilder: RoomStateEventStringBuilder(userID: client.userId(), shouldDisambiguateDisplayNames: false),
|
||||
messageEventStringBuilder: roomMessageEventStringBuilder,
|
||||
shouldDisambiguateDisplayNames: false,
|
||||
|
||||
Reference in New Issue
Block a user