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

Introduce Room.myMembership event #735

Merged
merged 4 commits into from
Sep 19, 2018
Merged

Introduce Room.myMembership event #735

merged 4 commits into from
Sep 19, 2018

Conversation

bwindels
Copy link
Contributor

@bwindels bwindels commented Sep 18, 2018

As you don't always have your own member with lazy loading
of members enabled, looking at the sync response section
where a room appears is the most reliable way of determining
the syncing user's membership in a room.

Before we already used this to read the
current room membership with room.getMyMembership(),
but we were still using the RoomMember.membership event
to detect when the syncing user's membership changed.

This event will help make those checks work well with LL enabled.

As you don't always have your own member with lazy loading
of members enabled, looking at the sync response section
where a room appears is the most reliable way of determining
the syncing user's membership in a room.

Before we already used this to read the
current room membership with `room.getMyMembership()`,
but we were still using the `RoomMember.membership` event
to detect when the syncing user's membership changed.

This event will help make those checks work well with LL enabled.
@bwindels bwindels changed the title Bwindels/fixstalerr Introduce Room.myMembership event Sep 18, 2018
@bwindels bwindels requested a review from a team September 18, 2018 09:40
@bwindels
Copy link
Contributor Author

Abandoned #734 in favor of this PR so the branch names matches with react-sdk, where the e2e tests fail because it's not using the right code in the js-sdk side.

@bwindels bwindels merged commit 574a6b6 into develop Sep 19, 2018
@t3chguy t3chguy deleted the bwindels/fixstalerr branch May 10, 2022 14:19
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