Merge pull request #245 from vanitasvitae/fixStaleDevices

Only ignore our own stale devices
This commit is contained in:
Florian Schmaus 2018-06-22 15:05:58 +02:00 committed by GitHub
commit d76d8a9b3f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

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