aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2017-12-27 21:01:41 +0100
committerChristian Schneppe <christian@pix-art.de>2017-12-27 21:01:41 +0100
commite7243b5e2ce38408faa47bf804d867295f100d61 (patch)
treef1cfcc4d9b1d0ccc14920584dc9b463e4ed08b85
parent7542322a40a9c22e6fbcdbc7f69bb3deecf9e197 (diff)
fixed omemo device list not getting annouced on empty list
-rw-r--r--src/main/java/de/pixart/messenger/crypto/axolotl/AxolotlService.java2
1 files changed, 1 insertions, 1 deletions
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;
}