fixed omemo device list not getting annouced on empty list

This commit is contained in:
Daniel Gultsch 2017-12-18 13:18:58 +01:00
parent 1753dcac76
commit e0ec6ad8b6
1 changed files with 1 additions and 1 deletions

View File

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