only show mark as unread in debug mode

Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
This commit is contained in:
Andy Scherzinger 2022-01-10 23:53:23 +01:00
parent 20904d95c1
commit 16246e9fe2
No known key found for this signature in database
GPG Key ID: 6CADC7E3523C308B

View File

@ -2539,7 +2539,7 @@ class ChatController(args: Bundle) :
menu.findItem(R.id.action_forward_message).isVisible =
ChatMessage.MessageType.REGULAR_TEXT_MESSAGE == message.getMessageType()
menu.findItem(R.id.action_mark_as_unread).isVisible = message.previousMessageId > NO_PREVIOUS_MESSAGE_ID &&
ChatMessage.MessageType.SYSTEM_MESSAGE != message.getMessageType()
ChatMessage.MessageType.SYSTEM_MESSAGE != message.getMessageType() && BuildConfig.DEBUG
if (menu.hasVisibleItems()) {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {
setForceShowIcon(true)