monal-im.org :xmpp: on Nostr: you aren't allowed to query the disco if you don't have a presence subscription. ...
you aren't allowed to query the disco if you don't have a presence subscription. (That's independent of pubsub.)
But for your use case that doesn't matter. We do the exact thame thing in Monal: if we get a muc answer back, the jid is a muc, every other answer/error means that the jid is an 1:1 chat or not existing at all :)
Published at
2024-09-13 15:41:25Event JSON
{
"id": "9ec7dc462e95fa55c97858657a10e43b02a6e38491c1df4345390efc075b9ee1",
"pubkey": "31a1db0ab553762a7866a42abe8b3f483334df37ed6d19518f9c8c9f26d74bae",
"created_at": 1726242085,
"kind": 1,
"tags": [
[
"e",
"5b9a90fe970b57a75f2ffa355567599e97a9b41c5c31b4ba794fe046f9a9b819",
"",
"root",
"fc4b3f32facd9d4dab39d48e10729f049632d44e1e4bafa3ccc6e79a9319d81e"
],
[
"proxy",
"https://fosstodon.org/@Monal/113131001322909175",
"web"
],
[
"p",
"fc4b3f32facd9d4dab39d48e10729f049632d44e1e4bafa3ccc6e79a9319d81e"
],
[
"proxy",
"https://fosstodon.org/users/Monal/statuses/113131001322909175",
"activitypub"
],
[
"L",
"pink.momostr"
],
[
"l",
"pink.momostr.activitypub:https://fosstodon.org/users/Monal/statuses/113131001322909175",
"pink.momostr"
],
[
"-"
]
],
"content": "you aren't allowed to query the disco if you don't have a presence subscription. (That's independent of pubsub.)\n\nBut for your use case that doesn't matter. We do the exact thame thing in Monal: if we get a muc answer back, the jid is a muc, every other answer/error means that the jid is an 1:1 chat or not existing at all :)",
"sig": "142ec665d231774b28bb2f23c3ac305eb588fe7b02663747367bb3d83f75535eff9929ecadc3d647f7bd0d9dfae414d273f4f606e1e843c089dba4f86da4d664"
}