Skip to content

EW api: add option to enable read receipt and marker to be cleared on user activity#144

Merged
florianduros merged 2 commits into
mainfrom
florianduros/ew-api/read-receipt
Dec 4, 2025
Merged

EW api: add option to enable read receipt and marker to be cleared on user activity#144
florianduros merged 2 commits into
mainfrom
florianduros/ew-api/read-receipt

Conversation

@florianduros
Copy link
Copy Markdown
Member

@florianduros florianduros commented Nov 27, 2025

EW implementation element-hq/element-web#31353
Needed for https://github.com/element-hq/wat-internal/issues/276

Used tsdoc @default first:

Warning: src/api/builtins.ts:32:8 - (tsdoc-undefined-tag) The TSDoc tag "@default" is not defined in this configuration

API Extractor completed with warnings
error Command failed with exit code 1.

Used @defaultValue instead: https://api-extractor.com/pages/tsdoc/tag_defaultvalue/

@florianduros florianduros force-pushed the florianduros/ew-api/read-receipt branch from 737d8fe to dc73971 Compare December 4, 2025 11:22
@florianduros florianduros force-pushed the florianduros/ew-api/read-receipt branch from dc73971 to 45287d6 Compare December 4, 2025 14:43
@florianduros florianduros changed the title EW api: add option to disable read receipt and marker to be cleared on user activity EW api: add option to enable read receipt and marker to be cleared on user activity Dec 4, 2025
@florianduros florianduros force-pushed the florianduros/ew-api/read-receipt branch from 45287d6 to 5a1c525 Compare December 4, 2025 15:59
@florianduros florianduros marked this pull request as ready for review December 4, 2025 16:18
@florianduros florianduros requested a review from a team as a code owner December 4, 2025 16:18
…sOnActivity`

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.
@florianduros florianduros force-pushed the florianduros/ew-api/read-receipt branch from 5a1c525 to abe8e16 Compare December 4, 2025 17:02
@florianduros florianduros merged commit 98ef698 into main Dec 4, 2025
17 checks passed
@florianduros florianduros deleted the florianduros/ew-api/read-receipt branch December 4, 2025 18:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants