mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 12:07:55 +00:00
pr suggestions
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user