f1ba8a8775
Follows on from https://github.com/matrix-org/matrix-js-sdk/pull/4937
(cherry picked from commit dea184e9ec)
Co-authored-by: David Baker <dbkr@users.noreply.github.com>