I believe this bug is linked with a low level Matrix protocol change, which also affected the python weechat plugin.
If so, then this commit in the nheko dependency "mtxclient" should fix it:
Implement MSC3916 (auth for media)
https://github.com/Nheko-Reborn/mtxclient/commit/a70753812e3fb832df12b24ee0ee6c70d68060d5
- Chris

