Co-authored-by: Šimon Brandner <simon.bra.ag@gmail.com> Fixes https://github.com/vector-im/element-web/issues/6278 Fixes undefined