forked from melod1n/fast-messenger
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:
+1
-1
@@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user