Fix Message#isValid

This commit is contained in:
Andrew 2024-02-19 12:35:46 +10:30
parent ef50d63410
commit c3b416f76c

View File

@ -43,8 +43,8 @@ abstract class Message {
} }
open fun isValid(): Boolean = open fun isValid(): Boolean =
sentTimestamp?.let { it > 0 } == true sentTimestamp?.let { it > 0 } != false
&& receivedTimestamp?.let { it > 0 } == true && receivedTimestamp?.let { it > 0 } != false
&& sender != null && sender != null
&& recipient != null && recipient != null