fixed omemo device list not getting annouced on empty list

This commit is contained in:
Christian Schneppe 2017-12-27 21:01:41 +01:00
parent 7542322a40
commit e7243b5e2c

View file

@ -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;
}