mirror of
https://github.com/moparisthebest/Conversations
synced 2024-11-30 20:52:21 -05:00
do not query service info from main server again
This commit is contained in:
parent
57fd763066
commit
a4b4c13c66
@ -848,11 +848,9 @@ public class XmppConnection implements Runnable {
|
||||
List<Element> elements = packet.query().getChildren();
|
||||
for (Element element : elements) {
|
||||
if (element.getName().equals("item")) {
|
||||
final String jid = element.getAttribute("jid");
|
||||
try {
|
||||
sendServiceDiscoveryInfo(Jid.fromString(jid).toDomainJid());
|
||||
} catch (final InvalidJidException ignored) {
|
||||
// TODO: Handle the case where an external JID is technically invalid?
|
||||
final Jid jid = element.getAttributeAsJid("jid");
|
||||
if (jid != null && !jid.equals(account.getServer())) {
|
||||
sendServiceDiscoveryInfo(jid);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user