From 83d107cbce7bc29f44812f554ef39c6453c79e31 Mon Sep 17 00:00:00 2001 From: jubb Date: Fri, 12 Feb 2021 14:28:25 +1100 Subject: [PATCH] fix: compare serialized to serialized --- .../org/thoughtcrime/securesms/database/MmsSmsDatabase.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/org/thoughtcrime/securesms/database/MmsSmsDatabase.java b/app/src/main/java/org/thoughtcrime/securesms/database/MmsSmsDatabase.java index 159d961816..a27ae0c691 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/database/MmsSmsDatabase.java +++ b/app/src/main/java/org/thoughtcrime/securesms/database/MmsSmsDatabase.java @@ -97,7 +97,9 @@ public class MmsSmsDatabase extends Database { while ((messageRecord = reader.getNext()) != null) { if ((Util.isOwnNumber(context, serializedAuthor) && messageRecord.isOutgoing()) || - (!Util.isOwnNumber(context, serializedAuthor) && messageRecord.getIndividualRecipient().getAddress().equals(serializedAuthor))) + (!Util.isOwnNumber(context, serializedAuthor) + && messageRecord.getIndividualRecipient().getAddress().serialize().equals(serializedAuthor) + )) { return messageRecord; }