only explicitly request device list for users not in roster
This commit is contained in:
parent
03fa58634b
commit
a09d63d9a4
|
@ -2341,7 +2341,11 @@ public class XmppConnectionService extends Service {
|
||||||
MucOptions.User user = AbstractParser.parseItem(conversation, child);
|
MucOptions.User user = AbstractParser.parseItem(conversation, child);
|
||||||
if (!user.realJidMatchesAccount()) {
|
if (!user.realJidMatchesAccount()) {
|
||||||
boolean isNew = conversation.getMucOptions().updateUser(user);
|
boolean isNew = conversation.getMucOptions().updateUser(user);
|
||||||
if (isNew && user.getRealJid() != null && axolotlService.hasEmptyDeviceList(user.getRealJid())) {
|
Contact contact = user.getContact();
|
||||||
|
if (isNew
|
||||||
|
&& user.getRealJid() != null
|
||||||
|
&& (contact == null || !contact.mutualPresenceSubscription())
|
||||||
|
&& axolotlService.hasEmptyDeviceList(user.getRealJid())) {
|
||||||
axolotlService.fetchDeviceIds(user.getRealJid());
|
axolotlService.fetchDeviceIds(user.getRealJid());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue