Unbound variable in OMEMO plugin prevents from posting in XMPP group chats
Versions
- OS: Linux
- GTK+ Version: 3.24.1
- PyGObject Version: 3.28.3
- GLib Version : 2.56.4
- python-nbxmpp Version: 0.9.91
- Gajim Version: 1.1.92
Traceback
Traceback (most recent call last):
File "/home/f0x/.local/lib64/python3.6/site-packages/nbxmpp-0.9.91-py3.6.egg/nbxmpp/dispatcher.py", line 621, in dispatch
handler['func'](session, stanza, properties)
File "/home/f0x/.local/share/gajim/plugins/omemo/modules/omemo.py", line 245, in _message_received
'trust': GajimTrust[trust.name]})
UnboundLocalError: local variable 'trust' referenced before assignment
Steps to reproduce the problem
- fetch most recent sources of gajim and plugins (assuming keys and other data is existing already);
- join group chat with OMEMO enabled;
- try to post message.
Expected result: you see your messages on the chat history and no exceptions occur.
Actual result: you don't see your own messages, however other chat participants still do, and exceptions arise.