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

Support MSC2876: Reading events from rooms #34

Merged
merged 1 commit into from
May 12, 2021
Merged

Conversation

turt2live
Copy link
Member

Copy link
Contributor

@jryans jryans left a 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",
Copy link
Contributor

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.

Copy link
Member Author

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)

Copy link
Member Author

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

@turt2live
Copy link
Member Author

landing this side given approval

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