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
@@ -135,12 +135,8 @@ struct HomeScreenRoomCell: View {
@ViewBuilder
private var lastMessage: some View {
// If the room is tombstoned, show a specific message, regardless of any last message.
if room.isTombstoned {
Text(L10n.screenRoomlistTombstonedRoomDescription)
.lastMessageFormatting()
} else if let lastMessage = room.lastMessage {
Text(lastMessage)
if let displayedLastMessage = room.displayedLastMessage {
Text(displayedLastMessage)
.lastMessageFormatting()
}
}