mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-28 20:45:17 +00:00
fix: add blocked check for read receipt and updating expiring messages
This commit is contained in:
parent
1cf4ef9e10
commit
03c264fb67
@ -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)
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user