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