Don't even try info on domain JIDs when looking for a list of MUCs (Cheogram)

This commit is contained in:
Arne 2023-06-27 16:49:35 +02:00
parent 9455b20e45
commit 7e11cad983

View file

@ -164,6 +164,7 @@ public class ChannelDiscoveryService {
if (itemsResponse.getType() == IqPacket.TYPE.RESULT) {
final List<Jid> items = IqParser.items(itemsResponse);
for (Jid item : items) {
if (item.isDomainJid()) continue; // Only looking for MUCs for now, and by spec they have a localpart
IqPacket infoRequest = service.getIqGenerator().queryDiscoInfo(item);
queriesInFlight.incrementAndGet();
service.sendIqPacket(account, infoRequest, new OnIqPacketReceived() {