turt2live / matrix-bot-sdk

TypeScript/JavaScript SDK for Matrix bots
MIT License
199 stars 69 forks source link

Keep same client when enabling crypto #280

Closed AndrewFerr closed 1 year ago

AndrewFerr commented 1 year ago

When enabling crypto on an Intent, upgrade its underlying Client to support encryption instead of replacing it with a brand new Client object. This allows any listeners added on the Client before crypto was enabled to persist through the change.

Signed-off-by: Andrew Ferrazzutti andrewf@element.io

Checklist