fix: compare serialized to serialized

This commit is contained in:
jubb 2021-02-12 14:28:25 +11:00
parent 2a50a09614
commit 83d107cbce

View File

@ -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;
}