Skip to content
This repository has been archived by the owner on Feb 24, 2020. It is now read-only.

Cannot send encrypted message #39

Open
aereaux opened this issue Feb 13, 2018 · 2 comments
Open

Cannot send encrypted message #39

aereaux opened this issue Feb 13, 2018 · 2 comments

Comments

@aereaux
Copy link
Contributor

aereaux commented Feb 13, 2018

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
Copy link
Contributor Author

aereaux commented Feb 14, 2018

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
Copy link
Contributor

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants