1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-11-22 06:12:05 +01:00

Only ignore our own stale devices

This commit is contained in:
Paul Schaub 2018-06-22 14:03:09 +02:00
parent 6e9fb17f8f
commit e79f364e1d
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311

View file

@ -385,8 +385,8 @@ public abstract class OmemoService<T_IdKeyPair, T_IdKey, T_PreKey, T_SigPreKey,
} }
} }
// Ignore stale devices // Ignore own stale devices
if (OmemoConfiguration.getIgnoreStaleDevices()) { if (contactsDevice.getJid().equals(userDevice.getJid()) && OmemoConfiguration.getIgnoreStaleDevices()) {
Date lastMessageDate = getOmemoStoreBackend().getDateOfLastReceivedMessage(userDevice, contactsDevice); Date lastMessageDate = getOmemoStoreBackend().getDateOfLastReceivedMessage(userDevice, contactsDevice);
if (lastMessageDate == null) { if (lastMessageDate == null) {