pr suggestions

This commit is contained in:
Mauro Romito
2025-06-05 16:53:10 +02:00
committed by Mauro
parent 248e88e718
commit 26a7d5ac82
13 changed files with 41 additions and 23 deletions
@@ -199,6 +199,14 @@ struct HomeScreenRoom: Identifiable, Equatable {
let isTombstoned: Bool
var displayedLastMessage: AttributedString? {
// If the room is tombstoned, show a specific message, regardless of any last message.
guard !isTombstoned else {
return AttributedString(L10n.screenRoomlistTombstonedRoomDescription)
}
return lastMessage
}
static func placeholder() -> HomeScreenRoom {
HomeScreenRoom(id: UUID().uuidString,
roomID: nil,