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

Distinguish room state and timeline events #116

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

robintown
Copy link
Member

@robintown robintown commented Dec 6, 2024

This is an implementation of an update to MSC2762. See the description there for an explainer.

This is an implementation of an update to MSC2762, which provides a new action for informing widgets of changes to room state.
Copy link
Contributor

@toger5 toger5 left a comment

Choose a reason for hiding this comment

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

This is quiet a bit of work with the queuing that needs to happen.
Looking through the PR it definitely makes a lot of sense that its needed.
The PR looks good!

Comment on lines +278 to +283
// If new events are allowed and the currently viewed room isn't covered
// by a timeline capability, then this is the widget's opportunity to
// learn the state of the viewed room
if (allowedEvents.length > 0 && this.viewedRoomId !== null && !this.canUseRoomTimeline(this.viewedRoomId)) {
this.pushRoomState(this.viewedRoomId);
}
Copy link
Contributor

Choose a reason for hiding this comment

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

I cannot follow this based on the comment. Shouldnt the widget never see any room if it does not have the timeline capability. Not event the viewed one? Or was that one of the widget api confusions. In that case it would be super helpful to provide that background here.

`org.matrix.msc2762.timeline:${roomId}`,
`org.matrix.msc2762.receive.state_event:${type}`,
]);
await loadIframe(['org.matrix.msc2762.receive.state_event:net.example.test#B']);
Copy link
Contributor

Choose a reason for hiding this comment

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

why do we remove the timeline capability here?

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