prevent traceback when we get a groupchat message for a room we're no more conencted. Fixes #5993
This commit is contained in:
parent
b1675bf233
commit
a58e2c584a
1 changed files with 3 additions and 0 deletions
|
@ -171,6 +171,9 @@ class Remote:
|
|||
self.raise_signal('Unsubscribed', (obj.conn.name, obj.jid))
|
||||
|
||||
def on_gc_message_received(self, obj):
|
||||
if not hasattr(obj, 'needs_highlight'):
|
||||
# event has not been handled at GUI level
|
||||
return
|
||||
self.raise_signal('GCMessage', (obj.conn.name, [obj.fjid, obj.msgtxt,
|
||||
obj.timestamp, obj.has_timestamp, obj.xhtml_msgtxt, obj.status_code,
|
||||
obj.displaymarking, obj.captcha_form, obj.needs_highlight]))
|
||||
|
|
Loading…
Add table
Reference in a new issue