mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-24 00:37:47 +00:00
fix: compare serialized to serialized
This commit is contained in:
parent
2a50a09614
commit
83d107cbce
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user