[triggers] Throws exception with current Gajim master
Versions
- OS: Debian testing
- Gajim version: 1.1.94 (master of 2020-04-21)
- Plugin version: 1.2.3
- GTK version: 3.24.18
- Python-nbxmpp version: 0.9.94 (master of 2020-04-19)
Steps to reproduce the problem
- Configure a trigger to play a sound, when a message by a specific contact is received
- Get a message by them
Expected behavior
Hear a sound.
Actual behavior
Error while running an event handler: <bound method Triggers._nec_decrypted_message_received of <triggers.triggers.Triggers object at 0x7f7f96eacd60>>
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/gajim/common/ged.py", line 101, in raise_event
if handler(*args, **kwargs):
File "/usr/lib/python3/dist-packages/gajim/./data/plugins/triggers/triggers.py", line 248, in _nec_decrypted_message_received
self._nec_all(obj, self.check_rule_apply_decrypted_msg,
File "/usr/lib/python3/dist-packages/gajim/./data/plugins/triggers/triggers.py", line 224, in _nec_all
if check_func(obj, rule):
File "/usr/lib/python3/dist-packages/gajim/./data/plugins/triggers/triggers.py", line 161, in check_rule_apply_decrypted_msg
return self.check_rule_all('message_received', obj, rule)
File "/usr/lib/python3/dist-packages/gajim/./data/plugins/triggers/triggers.py", line 131, in check_rule_all
if not self._check_rule_status(obj, rule):
File "/usr/lib/python3/dist-packages/gajim/./data/plugins/triggers/triggers.py", line 84, in _check_rule_status
our_status = app.SHOW_LIST[obj.conn.connected]
AttributeError: 'Client' object has no attribute 'connected'