use original message to parse pep
This commit is contained in:
parent
6c10f8a232
commit
d03c431137
|
@ -254,9 +254,10 @@ public class MessageParser extends AbstractParser implements OnMessagePacketRece
|
||||||
mXmppConnectionService.updateAccountUi();
|
mXmppConnectionService.updateAccountUi();
|
||||||
}
|
}
|
||||||
} else if (AxolotlService.PEP_DEVICE_LIST.equals(node)) {
|
} else if (AxolotlService.PEP_DEVICE_LIST.equals(node)) {
|
||||||
Log.d(Config.LOGTAG, AxolotlService.getLogprefix(account)+"Received PEP device list update from "+ from + ", processing...");
|
|
||||||
Element item = items.findChild("item");
|
Element item = items.findChild("item");
|
||||||
Set<Integer> deviceIds = mXmppConnectionService.getIqParser().deviceIds(item);
|
Set<Integer> deviceIds = mXmppConnectionService.getIqParser().deviceIds(item);
|
||||||
|
Log.d(Config.LOGTAG, AxolotlService.getLogprefix(account)+"Received PEP device list ("+deviceIds+") update from "+ from + ", processing...");
|
||||||
AxolotlService axolotlService = account.getAxolotlService();
|
AxolotlService axolotlService = account.getAxolotlService();
|
||||||
axolotlService.registerDevices(from, deviceIds);
|
axolotlService.registerDevices(from, deviceIds);
|
||||||
mXmppConnectionService.updateAccountUi();
|
mXmppConnectionService.updateAccountUi();
|
||||||
|
@ -651,9 +652,9 @@ public class MessageParser extends AbstractParser implements OnMessagePacketRece
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Element event = packet.findChild("event", "http://jabber.org/protocol/pubsub#event");
|
Element event = original.findChild("event", "http://jabber.org/protocol/pubsub#event");
|
||||||
if (event != null) {
|
if (event != null) {
|
||||||
parseEvent(event, from, account);
|
parseEvent(event, original.getFrom(), account);
|
||||||
}
|
}
|
||||||
|
|
||||||
String nick = packet.findChildContent("nick", "http://jabber.org/protocol/nick");
|
String nick = packet.findChildContent("nick", "http://jabber.org/protocol/nick");
|
||||||
|
|
Loading…
Reference in a new issue