From e7243b5e2ce38408faa47bf804d867295f100d61 Mon Sep 17 00:00:00 2001 From: Christian Schneppe Date: Wed, 27 Dec 2017 21:01:41 +0100 Subject: fixed omemo device list not getting annouced on empty list --- src/main/java/de/pixart/messenger/crypto/axolotl/AxolotlService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java/de/pixart/messenger/crypto/axolotl') diff --git a/src/main/java/de/pixart/messenger/crypto/axolotl/AxolotlService.java b/src/main/java/de/pixart/messenger/crypto/axolotl/AxolotlService.java index a090b72d1..c29d507ba 100644 --- a/src/main/java/de/pixart/messenger/crypto/axolotl/AxolotlService.java +++ b/src/main/java/de/pixart/messenger/crypto/axolotl/AxolotlService.java @@ -390,7 +390,7 @@ public class AxolotlService implements OnAdvancedStreamFeaturesLoaded { final int hash = deviceIds.hashCode(); final boolean me = jid.toBareJid().equals(account.getJid().toBareJid()); if (me) { - if (hash == this.lastDeviceListNotificationHash) { + if (hash != 0 && hash == this.lastDeviceListNotificationHash) { Log.d(Config.LOGTAG, account.getJid().toBareJid() + ": ignoring duplicate own device id list"); return; } -- cgit v1.2.3