Skip to content

Conversation

@Zil0
Copy link
Contributor

@Zil0 Zil0 commented Jun 27, 2018

Here's the part about sending encrypted group messages, both the crypto bits and the integration into the client.

Signed-off-by: Valentin Deniaud <valentin.deniaud@inpt.fr>

@Zil0 Zil0 changed the title Megolm outbound sessions [E2E] Megolm outbound sessions Jun 27, 2018
@Zil0
Copy link
Contributor Author

Zil0 commented Jul 30, 2018

@non-Jedi what do you think of 8e8359a? (only behavior that gets modified here)

@Zil0
Copy link
Contributor Author

Zil0 commented Aug 2, 2018

Pointer to a discussion about an old version of automatically send encrypted messages in encrypted rooms commit: 8e8359a.

is unencrypted.
"""
if not self.client._encryption or not self.encrypted:
raise RuntimeError
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is RuntimeError the best exception to be raised here (it might be, but I've never used it before, so I don't know when it'd be appropriate)? My approach would have been to define a new MatrixNotEncrypted exception or something along those lines.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're right, I've been lazy (and wasn't sure if it was worth a new exception). Note that the doc says about RuntimeError "Raised when an error is detected that doesn’t fall in any of the other categories.", so it was probably the best built-in exception :)

@non-Jedi non-Jedi closed this Dec 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants