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

Fix RoomView stuck in 'accept invite' state #1396

Merged
merged 4 commits into from
Sep 19, 2017

Conversation

dbkr
Copy link
Member

@dbkr dbkr commented Sep 15, 2017

After accepting a 3pid invite.

Rather than clear the joining flag when the join request completes,
leave it so the RoomView can see that we're expecting the user to
be joined in the various stages that might go through (waiting for
join request, waiting for room object, waiting for 'joined' member
event). The problem in this case was that we had to wait a bit for
the last one, and there was no bit of state to represent it.

This hopefully also makes the logic somewhat simpler.

Fixes element-hq/element-web#5041

After accepting a 3pid invite.

Rather than clear the joining flag when the join request completes,
leave it so the RoomView can see that we're expecting the user to
be joined in the various stages that might go through (waiting for
join request, waiting for room object, waiting for 'joined' member
event). The problem in this case was that we had to wait a bit for
the last one, and there was no bit of state to represent it.

This hopefully also makes the logic somewhat simpler.

Fixes element-hq/element-web#5041
@ara4n
Copy link
Member

ara4n commented Sep 15, 2017

this looks plausible to me, but i think @lukebarnard1 should prolly review it when back from hol.

@ara4n ara4n assigned lukebarnard1 and unassigned ara4n Sep 16, 2017
@lukebarnard1
Copy link
Contributor

LGTM apart from when switching rooms (dispatching view_room) when joining

@dbkr dbkr merged commit 658285e into develop Sep 19, 2017
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.

3 participants