element-hq / element-web

A glossy Matrix collaboration client for the web.
https://element.io
GNU Affero General Public License v3.0
11.22k stars 2k forks source link

Support sending plaintext events from /devtools in e2e rooms #6912

Open t3chguy opened 6 years ago

t3chguy commented 6 years ago

/devtools doesn't support sending plaintext events in encrypted rooms, it just automatically encrypts them. It could be useful for it to offer a way to send unencrypted events.

turt2live commented 6 years ago

Is this to add or remove the functionality? I'd quite like it to be honest.

t3chguy commented 6 years ago

Add, currently it just passes the event off to js-sdk which encrypts it if the room is encrypted and thus there's no way to force plaintext

lampholder commented 6 years ago

Are there any odd sideeffects as a result of this? What's the usecase for it?

t3chguy commented 6 years ago

this is a feature-req for the ability to send plaintext events in e2ee rooms using /devtools in case you want to manually trigger a bot or whatever for whatever development/testing purposes you may need