Skip to content

Add ExtraApi#getVisibleRoomBySpaceKey#134

Merged
florianduros merged 3 commits into
mainfrom
florianduros/roomids-space-module
Nov 21, 2025
Merged

Add ExtraApi#getVisibleRoomBySpaceKey#134
florianduros merged 3 commits into
mainfrom
florianduros/roomids-space-module

Conversation

@florianduros
Copy link
Copy Markdown
Member

@florianduros florianduros commented Nov 20, 2025

Add a way to add room ids for a given space. Needed to make work edition and reply of rooms when displayed in a space (added by a module).

Copy link
Copy Markdown
Member

@dbkr dbkr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One thought: is there a risk this could get out of sync? ie. if we passed a callback to get the rooms for a space when EW needed to know, would that be less data duplication?

@florianduros
Copy link
Copy Markdown
Member Author

florianduros commented Nov 21, 2025

@dbkr hmm, you're right there is less risk to be out of sync with the cb approach

Comment thread packages/element-web-module-api/src/api/extras.ts Outdated
@florianduros
Copy link
Copy Markdown
Member Author

@dbkr @langleyd I update the function signature and added doc

@florianduros florianduros force-pushed the florianduros/roomids-space-module branch from 3868aef to 4728aea Compare November 21, 2025 13:52
@florianduros florianduros changed the title Add ExtraApi#setRoomIdsForSpace Add ExtraApi#getVisibleRoomBySpaceKey Nov 21, 2025
Copy link
Copy Markdown
Member

@langleyd langleyd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@florianduros florianduros enabled auto-merge (squash) November 21, 2025 14:00
@florianduros florianduros merged commit c4cefab into main Nov 21, 2025
17 checks passed
@florianduros florianduros deleted the florianduros/roomids-space-module branch November 21, 2025 14:31
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.

3 participants