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:
Stefan Ceriu
2026-03-23 17:39:38 +02:00
committed by Stefan Ceriu
parent df7914d052
commit 823e2afa97
7 changed files with 38 additions and 28 deletions
@@ -21,7 +21,7 @@ struct RoomEventStringBuilderTests {
stringBuilder = RoomEventStringBuilder(stateEventStringBuilder: stateEventStringBuilder,
messageEventStringBuilder: RoomMessageEventStringBuilder(attributedStringBuilder: attributedStringBuilder,
destination: .roomList),
style: .senderPrefixed),
shouldDisambiguateDisplayNames: true,
shouldPrefixSenderName: true)
}