Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Fix stale RR and improve LL reliability in RoomView & MemberList. #2168

Merged
merged 15 commits into from
Sep 19, 2018

Conversation

bwindels
Copy link
Contributor

@bwindels bwindels commented Sep 17, 2018

Requires matrix-org/matrix-js-sdk#735
Fixes element-hq/element-web#7326

Uses Room.myMembership event to reliably know when we joined the room as we won't always get a RoomMember.membership for our own user with LL enabled.

Also pass the members-loaded state to TimelinePanel to make sure it re-renders after the members are loaded, so RR are re-rendered with all members known.

This is more reliable with LL enabled as the syncing user is
only known when it was active in the current timeline
or when the members have been loaded
the spinner should only be shown when joined
_loadMembersIfJoined is called from
_onRoomLoaded < _onRoomViewStoreUpdate, before incoming state
from the store is applied to this.state, so looking up the room
with this.state.roomId doesn't always work, which would cause
the members not to be loaded. Pass in the room instead.
@bwindels bwindels requested a review from a team September 17, 2018 18:10
@bwindels
Copy link
Contributor Author

Ran the e2e tests locally as they fail on CI atm, ran successfully.

@bwindels
Copy link
Contributor Author

This seems to break the RoomList tests, having a look at that before merging.

@bwindels
Copy link
Contributor Author

Waiting for matrix-org/matrix-react-end-to-end-tests#26 to make sure the build isn't broken.

@bwindels bwindels merged commit b431292 into develop Sep 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants