mirror of
https://github.com/vector-im/element-web.git
synced 2026-05-04 19:56:45 +02:00
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:
parent
84123065a7
commit
94aba63a1d
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user