~singpolyma/cheogram-android

c40fc2c0af772568d395e6ad3ec5993a63419a58 — Stephen Paul Weber 6 months ago 3be8061
Spec *basically* says MUC must have a node
1 files changed, 7 insertions(+), 0 deletions(-)

M src/main/java/eu/siacs/conversations/services/XmppConnectionService.java
M src/main/java/eu/siacs/conversations/services/XmppConnectionService.java => src/main/java/eu/siacs/conversations/services/XmppConnectionService.java +7 -0
@@ 3493,6 3493,13 @@ public class XmppConnectionService extends Service {
    }

    public void checkIfMuc(final Account account, final Jid jid, Consumer<Boolean> cb) {
        if (jid.isDomainJid()) {
            // Spec basically says MUC needs to have a node
            // And also specifies that MUC and MUC service should have the same identity...
            cb.accept(false);
            return;
        }

        IqPacket request = mIqGenerator.queryDiscoInfo(jid.asBareJid());
        sendIqPacket(account, request, (acct, reply) -> {
            ServiceDiscoveryResult result = new ServiceDiscoveryResult(reply);