From eda692d1c6093354e4fa13765329384e829ccac1 Mon Sep 17 00:00:00 2001 From: mathieui Date: Sun, 31 Jan 2021 17:02:51 +0100 Subject: [PATCH] XEP-0045: add a directed event for self-presence --- slixmpp/plugins/xep_0045/muc.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/slixmpp/plugins/xep_0045/muc.py b/slixmpp/plugins/xep_0045/muc.py index 905e0f49..ef6955bb 100644 --- a/slixmpp/plugins/xep_0045/muc.py +++ b/slixmpp/plugins/xep_0045/muc.py @@ -184,6 +184,8 @@ class XEP_0045(BasePlugin): self.rooms[entry['room']][entry['nick']] = entry log.debug("MUC presence from %s/%s : %s", entry['room'],entry['nick'], entry) self.xmpp.event("groupchat_presence", pr) + if 110 in pr['muc']['status_codes']: + self.xmpp.event("muc::%s::self-presence" % entry['room'], pr) self.xmpp.event("muc::%s::presence" % entry['room'], pr) if got_offline: self.xmpp.event("muc::%s::got_offline" % entry['room'], pr)