mirror of
https://github.com/oxen-io/session-android.git
synced 2025-01-11 23:23:39 +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) {
|
while ((messageRecord = reader.getNext()) != null) {
|
||||||
if ((Util.isOwnNumber(context, serializedAuthor) && messageRecord.isOutgoing()) ||
|
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;
|
return messageRecord;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user