From 7c0dbcf1f549cea38f573e7bed1bc1b457029f08 Mon Sep 17 00:00:00 2001 From: Morgan Pretty Date: Fri, 9 Jun 2023 17:10:32 +1000 Subject: [PATCH] Fixed inverted config dropping flags --- .../messaging/sending_receiving/ReceivedMessageHandler.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libsession/src/main/java/org/session/libsession/messaging/sending_receiving/ReceivedMessageHandler.kt b/libsession/src/main/java/org/session/libsession/messaging/sending_receiving/ReceivedMessageHandler.kt index bc02db9143..76563a986b 100644 --- a/libsession/src/main/java/org/session/libsession/messaging/sending_receiving/ReceivedMessageHandler.kt +++ b/libsession/src/main/java/org/session/libsession/messaging/sending_receiving/ReceivedMessageHandler.kt @@ -105,8 +105,8 @@ fun MessageReceiver.messageIsOutdated(message: Message, threadId: Long, openGrou ) // If the thread is visible or the message was sent more recently than the last config message (minus - // buffer period) then we should process the message, if not then throw as the message is outdated - return (conversationVisibleInConfig || canPerformChange) + // buffer period) then we should process the message, if not then the message is outdated + return (!conversationVisibleInConfig && !canPerformChange) } // region Control Messages