profanity-omemo-plugin icon indicating copy to clipboard operation
profanity-omemo-plugin copied to clipboard

Automatically enable OMEMO encryption for contacts that support it

Open devurandom opened this issue 8 years ago • 5 comments
trafficstars

It would be great of this plugin would automatically enable OMEMO encryption for contacts that support it, or at least remember whether such encryption was enabled previously. This would prevent the problem where people forget to /omemo start (which is rather annoying to type in every conversation, IMO) and then accidentally send messages unencrypted.

devurandom avatar Jun 23 '17 13:06 devurandom

You're absolutely right, once received and decrypted an OMEMO message, it should automatically adjust the chat to use OMEMO. Thanks for reporting. Will implement that.

ReneVolution avatar Jun 23 '17 14:06 ReneVolution

I'd probably be good to mimic Conversations' behaviour and/or automatically suggest OMEMO for contacts that advertise the capability and the keys and then save the user's choice for the next time.

Might be related to Blind Trust Before Verification.

devurandom avatar Jun 25 '17 12:06 devurandom

I need to check if profanity provides all the hooks required to mimic Conversations behaviour. What you basically ask, is:

When starting a new chat with /msg contact-jid, if the last known chat session was OMEMO enabled, enable OMEMO by default. If previously OMEMO was not turned on and any contact-jid device/resource has OMEMO capabilities, advertise the use of OMEMO in the chat window.

Is that correct so far?

And FYI, BTBV is a whole different story ... but will be tackled with Trust Management soon.

ReneVolution avatar Jun 25 '17 14:06 ReneVolution

Sounds perfect. :)

devurandom avatar Jun 25 '17 18:06 devurandom

Hey @devurandom, I think I am now pretty close to what you wanted. Am I?

ReneVolution avatar Jul 21 '17 08:07 ReneVolution