Skip to content

Allow widgets to read all existing events of a certain type #17994

@skolmer

Description

@skolmer

Is your suggestion related to a problem? Please describe.

MSC2762 just introduced new API's that allow widgets to read events from the room where the widget is located.
Unfortunately the current implementation caps the amount of events returned to an arbitrary amount 25 for room evens and 100 for state events

Describe the solution you'd like.

We would like to be able to read all events of a certain type by removing those arbitrary limits.

Describe alternatives you've considered.

A paging feature could be implemented to load events in batches.

Additional context

Let's say you want to implement a poll widget where the poll is described by a custom state event and the votes are represented by custom room events. In this case the widget needs to be able to collect all vote events that exist in the room to sum up the results of the poll.
Another use-case would be to read all members (100+) from a large community room to implement a user selector in a widget.

Metadata

Metadata

Assignees

Labels

A-DevTools/devtools, show hidden events, etc.A-Developer-ExperienceA-WidgetsO-OccasionalAffects or can be seen by some users regularly or most users rarelyS-MajorSeverely degrades major functionality or product features, with no satisfactory workaroundSponsoredT-Enhancement

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions