Philipp Hörist pushed to branch master at gajim / python-nbxmpp
Commits:
c113f08c by lovetox at 2022-07-26T14:56:05+02:00
fix: Allow handlers to connect to presence type available
- - - - -
1 changed file:
- nbxmpp/dispatcher.py
Changes:
=====================================
nbxmpp/dispatcher.py
=====================================
@@ -421,10 +421,13 @@ class StanzaDispatcher(Observable):
return
typ = stanza.getType()
- if name == 'message' and not typ:
- typ = 'normal'
- elif not typ:
- typ = ''
+ if not typ:
+ if name == 'message':
+ typ = 'normal'
+ elif name == 'presence':
+ typ = 'available'
+ else:
+ typ = ''
stanza.props = stanza.getProperties()
self._log.debug('type: %s, properties: %s', typ, stanza.props)
View it on GitLab:
https://dev.gajim.org/gajim/python-nbxmpp/-/commit/c113f08ce75bfe1d068759c8bf38033d7d6ffcd3
--
View it on GitLab:
https://dev.gajim.org/gajim/python-nbxmpp/-/commit/c113f08ce75bfe1d068759c8bf38033d7d6ffcd3
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits