Commit c113f08c authored by Philipp Hörist's avatar Philipp Hörist
Browse files

fix: Allow handlers to connect to presence type available

parent 07863d1d
Pipeline #10511 passed with stages
in 45 seconds
......@@ -421,10 +421,13 @@ class StanzaDispatcher(Observable):
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'
typ = ''
stanza.props = stanza.getProperties()
self._log.debug('type: %s, properties: %s', typ, stanza.props)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment