fix: add blocked check for read receipt and updating expiring messages

This commit is contained in:
0x330a 2023-04-27 13:19:07 +10:00
parent 1cf4ef9e10
commit 03c264fb67
No known key found for this signature in database
GPG Key ID: 267811D6E6A2698C
2 changed files with 2 additions and 2 deletions

View File

@ -64,7 +64,7 @@ object ConversationMenuHelper {
// Base menu (options that should always be present)
inflater.inflate(R.menu.menu_conversation, menu)
// Expiring messages
if (!isOpenGroup && (thread.hasApprovedMe() || thread.isClosedGroupRecipient)) {
if (!isOpenGroup && (thread.hasApprovedMe() || thread.isClosedGroupRecipient) && !thread.isBlocked) {
if (thread.expireMessages > 0) {
inflater.inflate(R.menu.menu_conversation_expiration_on, menu)
val item = menu.findItem(R.id.menu_expiring_messages)

View File

@ -49,7 +49,7 @@ object SessionMetaProtocol {
@JvmStatic
fun shouldSendReadReceipt(recipient: Recipient): Boolean {
return !recipient.isGroupRecipient && recipient.isApproved
return !recipient.isGroupRecipient && recipient.isApproved && !recipient.isBlocked
}
@JvmStatic