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()
|
ptype = prs.getType()
|
||||||
if ptype == 'available':
|
if ptype == 'available':
|
||||||
ptype = None
|
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)
|
gajim.log.debug('PresenceCB: %s' % ptype)
|
||||||
try:
|
try:
|
||||||
who = helpers.get_full_jid_from_iq(prs)
|
who = helpers.get_full_jid_from_iq(prs)
|
||||||
|
|
Loading…
Reference in New Issue