Philipp Hörist pushed to branch master at gajim / python-nbxmpp
Commits:
d1dceb9e by Philipp Hörist at 2024-07-23T23:08:32+02:00
fix: Delay: Consider MUC and own server
Fixes #156
- - - - -
1 changed file:
- nbxmpp/modules/delay.py
Changes:
=====================================
nbxmpp/modules/delay.py
=====================================
@@ -44,11 +44,12 @@ class Delay(BaseModule):
def _process_message_delay(self, _client, stanza, properties):
# Determine if delay is from the server
# Some servers use the bare jid, others the domain
- jid = self._client.get_bound_jid()
- if properties.from_muc:
- jid = properties.jid
+ our_jid = self._client.get_bound_jid()
+ jids = [our_jid.bare, our_jid.domain]
- jids = [jid.bare, jid.domain]
+ if properties.from_muc:
+ muc_jid = properties.jid
+ jids += [muc_jid.bare, muc_jid.domain]
if properties.is_muc_subject:
# MUC Subjects can have a delay timestamp
View it on GitLab:
https://dev.gajim.org/gajim/python-nbxmpp/-/commit/d1dceb9e1bac65a1cba90cd63da0f7bb8e9e1266
--
View it on GitLab:
https://dev.gajim.org/gajim/python-nbxmpp/-/commit/d1dceb9e1bac65a1cba90cd63da0f7bb8e9e1266
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]