matrix-org / matrix-js-sdk

Matrix Client-Server SDK for JavaScript
Apache License 2.0
1.55k stars 583 forks source link

Element-R: Fix resource leaks in verification logic #4263

Closed richvdh closed 3 months ago

richvdh commented 3 months ago

Fixes a couple of reference cycles which could cause objects to be leaked, ultimately meaning that we hold open a connection to IndexedDB, exacerbating https://github.com/vector-im/element-web/issues/25779.

Requires #4264

Should be reviewable commit-by-commit.

richvdh commented 3 months ago

I'm going to split this into two PRs (done)