feat(ew-api): add builtins#RoomViewProps#enableReadReceiptsAndMarkersOnActivity

For the multiroom module, we display several room views at the same
time. In order to avoid all the rooms to send read receipts and markers
automatically when we are interacting with the UI, we add
`enableReadReceiptsAndMarkersOnActivity` props.

When at false, the timeline doesn't listen to user activity to send
these receipts. Only when the room is focused, marker and read receipts
are updated.
This commit is contained in:
Florian Duros 2025-11-27 18:04:26 +01:00
parent 84123065a7
commit 94aba63a1d

View File

@ -30,6 +30,12 @@ export interface RoomViewProps {
* If true, the widgets will be hidden.
*/
hideWidgets?: boolean;
/**
* If true, enable sending read receipts and markers on user activity in the room view. When the user interacts with the room view, read receipts and markers are sent.
* If false, the read receipts and markers are only send when the room view is focused. The user has to focus the room view in order to clear any unreads and to move the unread marker to the bottom of the view.
* @defaultValue true
*/
enableReadReceiptsAndMarkersOnActivity?: boolean;
}
/**