
Description
Description
I made an Element widget that uses the matrix-widget-api to communicate with other users who also have this widget (by sending and receiving events). This works just fine when using state events or if end-to-end encryption is off for the room. However, room events are not received at all if the room is encrypted; the only indication that something was received is an unread message indicator in Element that appears next to the room name (see the attached screenshot). This indicator doesn't appear when events are correctly received (which is the case for room events in unencrypted rooms and state events).
Steps to reproduce
- Create an encrypted room
- Open a new tab and open the same room again
- Add a widget that uses
.sendRoomEvent()
and.on()
to subscribe to/receive events - Pin the widget in both tabs and grant the capabilities when requested
- Have the widget send an event and check if it's been received in the other browser tab
I expected that the event would have been received, just like in unencrypted rooms. After all, widgets are not responsible for encryption - Element is. However, no event was received.
Version information
- Platform: web
- Browser: Chrome Version 91.0.4472.77 (Official Build) (arm64)
- OS: macOS 11.4 (20F71)
- URL: develop.element.io