only explicitly request device list for users not in roster
This commit is contained in:
parent
1b6869c855
commit
ddfd2d736b
1 changed files with 5 additions and 1 deletions
|
@ -2341,7 +2341,11 @@ public class XmppConnectionService extends Service {
|
|||
MucOptions.User user = AbstractParser.parseItem(conversation, child);
|
||||
if (!user.realJidMatchesAccount()) {
|
||||
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());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue