-
-
Notifications
You must be signed in to change notification settings - Fork 19
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
Support MSC2876: Reading events from rooms #34
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall looks good, but the directional naming is a bit confusing.
@@ -19,6 +19,7 @@ import { Capability } from ".."; | |||
export enum EventDirection { | |||
Send = "send", | |||
Receive = "receive", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, could this concept be named listen
instead...? "Receive" and "read" are quite similar... I guess it needs an MSC to change the capabilities though... 😅
If it's too late to actually rename, then at least add some comments... I have already been unsure each time I saw either one while reading this PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can rename the enum name, but the value would ideally stay the same (or be changed in that MSC, which hasn't landed yet, but it would require managing a tech debt episode we don't have availability for)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmm, actually it's not safe to rename the enum at this stage, but we should probably do that before a proper release of this SDK... Have filed #35 to track
landing this side given approval |
MSC: matrix-org/matrix-spec-proposals#2876
For element-hq/element-web#15747