Refactor: Exclude outgoing messages from being marked as read

The "Mark as read" option will no longer be shown for outgoing messages in the message options dialog, as they are implicitly read.
This commit is contained in:
2025-12-03 06:06:37 +03:00
parent 018151ad18
commit dcddddea9b
@@ -117,7 +117,7 @@ fun MessageOptionsDialog(
options += if (message.isPinned) MessageOption.Unpin else MessageOption.Pin options += if (message.isPinned) MessageOption.Unpin else MessageOption.Pin
} }
if (!message.isRead(screenState.conversation)) { if (!message.isOut && !message.isRead(screenState.conversation)) {
options += MessageOption.Read options += MessageOption.Read
} }