Skip to content

Commit 98ef698

Browse files
authored
Merge pull request #144 from element-hq/florianduros/ew-api/read-receipt
EW api: add option to enable read receipt and marker to be cleared on user activity
2 parents 3aef9ea + abe8e16 commit 98ef698

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

packages/element-web-module-api/element-web-module-api.api.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,7 @@ export interface RoomListStoreApi {
357357

358358
// @alpha
359359
export interface RoomViewProps {
360+
enableReadReceiptsAndMarkersOnActivity?: boolean;
360361
hideComposer?: boolean;
361362
hideHeader?: boolean;
362363
hidePinnedMessageBanner?: boolean;

packages/element-web-module-api/src/api/builtins.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,12 @@ export interface RoomViewProps {
3030
* If true, the widgets will be hidden.
3131
*/
3232
hideWidgets?: boolean;
33+
/**
34+
* 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.
35+
* 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.
36+
* @defaultValue true
37+
*/
38+
enableReadReceiptsAndMarkersOnActivity?: boolean;
3339
}
3440

3541
/**

0 commit comments

Comments
 (0)