fixed roster items w/o subscription (request) not being shown
This commit is contained in:
parent
ea6289c02e
commit
ad601e47c8
|
@ -59,8 +59,7 @@ public class IqParser extends AbstractParser implements OnIqPacketReceived {
|
|||
contact.setServerName(name);
|
||||
contact.parseGroupsFromElement(item);
|
||||
}
|
||||
if (subscription != null) {
|
||||
if (subscription.equals("remove")) {
|
||||
if ("remove".equals(subscription)) {
|
||||
contact.resetOption(Contact.Options.IN_ROSTER);
|
||||
contact.resetOption(Contact.Options.DIRTY_DELETE);
|
||||
contact.resetOption(Contact.Options.PREEMPTIVE_GRANT);
|
||||
|
@ -69,7 +68,6 @@ public class IqParser extends AbstractParser implements OnIqPacketReceived {
|
|||
contact.resetOption(Contact.Options.DIRTY_PUSH);
|
||||
contact.parseSubscriptionFromElement(item);
|
||||
}
|
||||
}
|
||||
boolean both = contact.getOption(Contact.Options.TO) && contact.getOption(Contact.Options.FROM);
|
||||
if ((both != bothPre) && both) {
|
||||
Log.d(Config.LOGTAG,account.getJid().toBareJid()+": gained mutual presence subscription with "+contact.getJid());
|
||||
|
|
Loading…
Reference in a new issue