Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes for reading room state #126

Merged

Conversation

toger5
Copy link
Contributor

@toger5 toger5 commented Jan 24, 2025

Fixes #127

This fixes an issue where when a widget read the room state using read_events.
Previously this was using the current room state to populate the returned events. Not it uses the timeline.
For widgets that do not use the update_state action this is how they expected to receive events. They will not work anymore.

This change makes read_state return the current state again.

src/ClientWidgetApi.ts Outdated Show resolved Hide resolved
test/ClientWidgetApi-test.ts Outdated Show resolved Hide resolved
@toger5 toger5 force-pushed the toger5/fix-reading-room-state-events-for-client-widget-api branch from 165359e to de97f9e Compare January 27, 2025 14:22
@toger5
Copy link
Contributor Author

toger5 commented Jan 27, 2025

I re-based on the formatting changes.

@toger5 toger5 requested a review from robintown January 27, 2025 14:22
test/ClientWidgetApi-test.ts Outdated Show resolved Hide resolved
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
68.2% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube Cloud

@toger5 toger5 merged commit 7d1e926 into master Jan 27, 2025
3 of 4 checks passed
@toger5 toger5 deleted the toger5/fix-reading-room-state-events-for-client-widget-api branch January 27, 2025 15:26
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.

Full room state is no longer available to widgets unless they use the update_state action
2 participants