notify GUI about ERROR presences. Fixes #3667
This commit is contained in:
parent
615ed1be06
commit
0317d93561
|
@ -2121,12 +2121,12 @@ class ConnectionHandlers(ConnectionVcard, ConnectionBytestream, ConnectionDisco,
|
||||||
elif ptype == 'error':
|
elif ptype == 'error':
|
||||||
errmsg = prs.getError()
|
errmsg = prs.getError()
|
||||||
errcode = prs.getErrorCode()
|
errcode = prs.getErrorCode()
|
||||||
if errcode == '502': # Internal Timeout:
|
if errcode != '502': # Internal Timeout:
|
||||||
self.dispatch('NOTIFY', (jid_stripped, 'error', errmsg, resource,
|
# print in the window the error
|
||||||
prio, keyID, timestamp, None))
|
|
||||||
else: # print in the window the error
|
|
||||||
self.dispatch('ERROR_ANSWER', ('', jid_stripped,
|
self.dispatch('ERROR_ANSWER', ('', jid_stripped,
|
||||||
errmsg, errcode))
|
errmsg, errcode))
|
||||||
|
self.dispatch('NOTIFY', (jid_stripped, 'error', errmsg, resource, prio,
|
||||||
|
keyID, timestamp, None))
|
||||||
|
|
||||||
if ptype == 'unavailable' and jid_stripped in self.sessions:
|
if ptype == 'unavailable' and jid_stripped in self.sessions:
|
||||||
# automatically terminate sessions that they haven't sent a thread ID in
|
# automatically terminate sessions that they haven't sent a thread ID in
|
||||||
|
|
Loading…
Reference in New Issue