PGP plugin not working in 1.4.0-dev1+6781ec1b7
Please first check if another issue has been opened for your problem
Versions
- OS: Ubuntu 22.04
- Gajim version: 1.4.0-dev1+6781ec1b7 installed via deb package gajim-default-nightly version 20220503-1
- Plugin version: 1.4.4
- GTK version: 3.24.33
- Python-nbxmpp version: 3.0.0.dev3
- python3-gnupg version: 0.4.8-1
Steps to reproduce the problem
- enable PGP plugin via the builtin plugin installer
- establish mutual contacts between two accounts
- from the PGP plugin menu, set the PGP key for each user
- open a chat window from one contact to another
- enable PGP for the conversation and assign the other contact's key
- type message and press enter
Expected behavior
Message should post.
Actual behavior
No message posts. The only perceptible change on the screen is that the recipient will sometimes see the contact's typing indicator in the conversations panel.
Debug log output:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/gajim/plugins/pluginmanager.py", line 490, in _execute_all_handlers_of_gui_extension_point
handlers[0](*args)
File "/home/user/.local/share/gajim/plugins/pgp/plugin.py", line 180, in _encrypt_message
self.get_pgp_module(account).encrypt_message(conn, event, callback)
File "/home/user/.local/share/gajim/plugins/pgp/modules/pgp_legacy.py", line 160, in encrypt_message
to_jid = app.get_jid_without_resource(event.jid)
File "/usr/lib/python3/dist-packages/gajim/common/app.py", line 326, in get_jid_without_resource
return jid.split('/')[0]
AttributeError: 'JID' object has no attribute 'split'