psi-im/plugins

[OMEMO] Remove "Known Keys" of one contact in one XMPP Account breaks other XMPP Account with the identical contact

Closed this issue · 1 comments

Psi+ with 2 XMPP Accounts, and Accounts are in each roster:

If we remove known key/keys of one contact@domain.tld in one XMPP Account breaks other XMPP Account with the same contact.

Client -> Options -> Plugins -> OMEMO -> XMPP Account -> Known Keys -> Please select Key/Keys -> Delete -> Delete confirmation

Note: "Known Keys" are not changed in other XMPP Account, always here.

Try to send a message in the contact@domain.tld tab with the XMPP Account where we have removed "Known Key/Keys":

Nothing in XML Console, and in tab:

[XX:XX:26] *** [OMEMO] Unable to build any sessions, the message was not sent
[XX:XX:26] ***  Encryption is disabled
[XX:XX:26] <Username> .

In the same tab: Change the OMEMO RED ICON status to "Disable OMEMO encryption", it is changed in all contact@domain.tld tabs.
After, the OMEMO icon become in GREY "OMEMO encryption is not available for this contact" in all contact@domain.tld tabs.
Try to send an uncrypted message, it is sent correctly.

The other contact@domain.tld chat tabs (second XMPP Account): OMEMO GREY ICON
Try to send a message, the message is OMEMO forced and it works, but now it is impossible to disable OMEMO.

Linked to:

Thanks to @stigger for this commit which has solved 4 OMEMO issues!