From 5e404377d4eb1b80b81be91d75e12300c40b354c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Sun, 12 Jan 2020 13:45:44 +0100 Subject: Disco#info barejid instead of domain only on carbons MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit There is no apparent reason why a disco#info should be done on the domain Jid rather than the bare Jid. MUCs advertize their MUC-y-ness on the bare Jid. This will also fix cases like chat@dino.im which is a MUC component itself (whereas dino.im is a user host), and biboumi components that serves a mic of MUCs and (IRC) users. Signed-off-by: Maxime “pep” Buquet --- poezio/core/handlers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poezio/core/handlers.py b/poezio/core/handlers.py index 158dff17..cfdeb271 100644 --- a/poezio/core/handlers.py +++ b/poezio/core/handlers.py @@ -175,7 +175,7 @@ class HandlerCore: if is_muc_pm is None: fixes.has_identity( self.core.xmpp, - recv['from'].server, + recv['from'].bare, identity='conference', on_true=functools.partial(ignore_message, recv), on_false=functools.partial(receive_message, recv)) -- cgit v1.2.3