From c3b416f76cf87e52ff3fe017e60e6c450eb5157b Mon Sep 17 00:00:00 2001 From: Andrew Date: Mon, 19 Feb 2024 12:35:46 +1030 Subject: [PATCH] Fix Message#isValid --- .../java/org/session/libsession/messaging/messages/Message.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libsession/src/main/java/org/session/libsession/messaging/messages/Message.kt b/libsession/src/main/java/org/session/libsession/messaging/messages/Message.kt index 8d52755bbc..5a7ecaedaf 100644 --- a/libsession/src/main/java/org/session/libsession/messaging/messages/Message.kt +++ b/libsession/src/main/java/org/session/libsession/messaging/messages/Message.kt @@ -43,8 +43,8 @@ abstract class Message { } open fun isValid(): Boolean = - sentTimestamp?.let { it > 0 } == true - && receivedTimestamp?.let { it > 0 } == true + sentTimestamp?.let { it > 0 } != false + && receivedTimestamp?.let { it > 0 } != false && sender != null && recipient != null