OMEMO silently drops messages to be sent if there is no valid session
- gajim-plugins git master, OMEMO: 2.6.40
How to reproduce:
- enter message, send, GUI pop-up with keys and what?
(I) gajim.plugin_system.omemo: Load: 111111111111111111111111 2
(I) gajim.plugin_system.omemo: Load: 222222222222222222222222 2
(I) gajim.plugin_system.omemo: Load: 333333333333333333333333 2
(D) gajim.plugin_system.omemo: MYSERVER => Showing Fingerprint Prompt for CONTACT
(D) gajim.plugin_system.omemo: MYSERVER => Sending Message to CONTACT
(D) gajim.plugin_system.omemo: Skipped Device because Trust is: 2
(E) gajim.plugin_system.omemo: Encrypted keys empty
(W) gajim.plugin_system: Error executing <bound method OmemoPlugin._encrypt_message of <omemo.omemoplugin.OmemoPlugin object at 0x7f2bbd862630>>
Traceback (most recent call last):
File "/home/andrey/progs/gajim.git/gajim/plugins/pluginmanager.py", line 366, in _execute_all_handlers_of_gui_extension_point
handlers[0](*args)
File "/home/andrey/gajim-profiles/gtk3/plugins/omemo/omemoplugin.py", line 214, in _encrypt_message
app.connections[conn.name].get_module('OMEMO').encrypt_message(conn, obj, callback)
File "/home/andrey/gajim-profiles/gtk3/plugins/omemo/modules/omemo.py", line 576, in encrypt_message
msg_dict = self.omemo.create_msg(self.own_jid, to_jid, plaintext)
File "/home/andrey/gajim-profiles/gtk3/plugins/omemo/omemo/state.py", line 252, in create_msg
raise NoValidSessions('Encrypted keys empty')
omemo.omemo.aes_gcm.NoValidSessions: Encrypted keys empty
- message disappeared
- enter message, send
(I) nbxmpp.transports_nb: Plugging fd 39, W:False, R:True
(D) gajim.plugin_system.omemo: MYSERVER => Sending Message to CONTACT
(D) gajim.plugin_system.omemo: Skipped Device because Trust is: 2
(E) gajim.plugin_system.omemo: Encrypted keys empty
(W) gajim.plugin_system: Error executing <bound method OmemoPlugin._encrypt_message of <omemo.omemoplugin.OmemoPlugin object at 0x7f2bbd862630>>
Traceback (most recent call last):
[... same exception ...]
- message disappeared
- restart gajim, enter message, send, [same exception], message disappeared