ReneVolution / profanity-omemo-plugin

A Python plugin to use (axolotl / Signal Protocol) encryption for the profanity XMPP messenger
GNU General Public License v3.0
64 stars 14 forks source link

Cannot send encrypted message #39

Open aereaux opened 6 years ago

aereaux commented 6 years ago

When I try to send an encrypted message, the message is sent, and it shows the @ symbol before it (which I assume is supposed to mean that it was encrypted). However, it shows on my other client (conversations) as unencrypted, as well as on the receiver's side, and "Last message was sent unencrypted." is shown in the chat window before the message. The log contains this:

13/02/2018 17:06:40: prof: ERR: ProfOmemoPlugin - Could not encrypt message
Traceback (most recent call last):
  File "/home/user/.local/share/profanity/plugins/prof_omemo_plugin.py", line 364, in prof_on_message_stanza_send
    encrypted_stanza = xmpp.encrypt_stanza(stanza)
  File "/home/user/.local/lib/python3.6/site-packages/profanity_omemo_plugin-0.0.1-py3.6.egg/profanity_omemo_plugin/xmpp.py", line 86, in encrypt_stanza
    account, resource = jid.rsplit('/', 1)
ValueError: not enough values to unpack (expected 2, got 1)

Let me know if any other information needs to be provided.

In addition (probably unrelated), the /omemo fingerprints command only shows the fingerprint of my other client.

aereaux commented 6 years ago

So after further testing, I figured out that if I have already started a conversation (with conversations), there is no error message or unencrypted warning when I try to send a message. However, the person I am having a conversation with says that they did not get the message, and I do not see it on my other client (conversations). In addition, at the top of the window it has the full jid (user@domain/resource).

paullouisageneau commented 6 years ago

Please check with the fixes in #44, it should solve your issue.