From e0ec6ad8b6f2a3c0b8c01396ded873a4bf4bbb21 Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Mon, 18 Dec 2017 13:18:58 +0100 Subject: [PATCH] fixed omemo device list not getting annouced on empty list --- .../eu/siacs/conversations/crypto/axolotl/AxolotlService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/eu/siacs/conversations/crypto/axolotl/AxolotlService.java b/src/main/java/eu/siacs/conversations/crypto/axolotl/AxolotlService.java index 753304158..afb10b01a 100644 --- a/src/main/java/eu/siacs/conversations/crypto/axolotl/AxolotlService.java +++ b/src/main/java/eu/siacs/conversations/crypto/axolotl/AxolotlService.java @@ -392,7 +392,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; }