consider all unknown types in presence as if there were no type. fixes #3144
This commit is contained in:
parent
c276dc679c
commit
3455d9e578
|
@ -1544,6 +1544,9 @@ class ConnectionHandlers(ConnectionVcard, ConnectionBytestream, ConnectionDisco,
|
|||
ptype = prs.getType()
|
||||
if ptype == 'available':
|
||||
ptype = None
|
||||
rfc_types = ('unavailable', 'error', 'subscribe', 'subscribed', 'unsubscribe', 'unsubscribed')
|
||||
if ptype and not ptype in rfc_types:
|
||||
ptype = None
|
||||
gajim.log.debug('PresenceCB: %s' % ptype)
|
||||
try:
|
||||
who = helpers.get_full_jid_from_iq(prs)
|
||||
|
|
Loading…
Reference in New Issue