mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-25 11:05:25 +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)
|
// Base menu (options that should always be present)
|
||||||
inflater.inflate(R.menu.menu_conversation, menu)
|
inflater.inflate(R.menu.menu_conversation, menu)
|
||||||
// Expiring messages
|
// Expiring messages
|
||||||
if (!isOpenGroup && (thread.hasApprovedMe() || thread.isClosedGroupRecipient)) {
|
if (!isOpenGroup && (thread.hasApprovedMe() || thread.isClosedGroupRecipient) && !thread.isBlocked) {
|
||||||
if (thread.expireMessages > 0) {
|
if (thread.expireMessages > 0) {
|
||||||
inflater.inflate(R.menu.menu_conversation_expiration_on, menu)
|
inflater.inflate(R.menu.menu_conversation_expiration_on, menu)
|
||||||
val item = menu.findItem(R.id.menu_expiring_messages)
|
val item = menu.findItem(R.id.menu_expiring_messages)
|
||||||
|
@ -49,7 +49,7 @@ object SessionMetaProtocol {
|
|||||||
|
|
||||||
@JvmStatic
|
@JvmStatic
|
||||||
fun shouldSendReadReceipt(recipient: Recipient): Boolean {
|
fun shouldSendReadReceipt(recipient: Recipient): Boolean {
|
||||||
return !recipient.isGroupRecipient && recipient.isApproved
|
return !recipient.isGroupRecipient && recipient.isApproved && !recipient.isBlocked
|
||||||
}
|
}
|
||||||
|
|
||||||
@JvmStatic
|
@JvmStatic
|
||||||
|
Loading…
Reference in New Issue
Block a user