Merge pull request #7562 from hayaksi1/fix/1548-dm-preview-sender

Drop the sender's name from the room list preview of two-person rooms
This commit is contained in:
Benoit Marty
2026-08-27 11:19:32 +02:00
committed by GitHub
3 changed files with 37 additions and 1 deletions
@@ -14,11 +14,16 @@ import io.element.android.libraries.matrix.api.roomlist.LatestEventValue
class FakeRoomLatestEventFormatter : RoomLatestEventFormatter {
private var result: CharSequence? = null
var lastIsDmRoom: Boolean? = null
private set
override fun format(latestEvent: LatestEventValue.Local, isDmRoom: Boolean): CharSequence? {
lastIsDmRoom = isDmRoom
return result
}
override fun format(latestEvent: LatestEventValue.Remote, isDmRoom: Boolean): CharSequence? {
lastIsDmRoom = isDmRoom
return result
}