cleared up some error messages in axolotl service and execute publishOwnDevicesWhenNeeded() only if processing our own jid
This commit is contained in:
parent
25c49d5e34
commit
5eae1e52d2
|
@ -282,8 +282,10 @@ public class AxolotlService {
|
|||
XmppAxolotlSession.Trust.UNTRUSTED);
|
||||
this.deviceIds.put(jid, deviceIds);
|
||||
mXmppConnectionService.keyStatusUpdated();
|
||||
if (account.getJid().toBareJid().equals(jid.toBareJid())) {
|
||||
publishOwnDeviceIdIfNeeded();
|
||||
}
|
||||
}
|
||||
|
||||
public void wipeOtherPepDevices() {
|
||||
Set<Integer> deviceIds = new HashSet<>();
|
||||
|
@ -320,12 +322,14 @@ public class AxolotlService {
|
|||
mXmppConnectionService.sendIqPacket(account, publish, new OnIqPacketReceived() {
|
||||
@Override
|
||||
public void onIqPacketReceived(Account account, IqPacket packet) {
|
||||
// TODO: implement this!
|
||||
if (packet.getType() != IqPacket.TYPE.RESULT) {
|
||||
Log.d(Config.LOGTAG, getLogprefix(account)+ "Error received while publishing own device id" + packet.findChild("error"));
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
} else {
|
||||
Log.d(Config.LOGTAG, getLogprefix(account) + "Error received while publishing device ID:" + packet.findChild("error"));
|
||||
Log.d(Config.LOGTAG, getLogprefix(account) + "Error received while retrieving Device Ids" + packet.findChild("error"));
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue