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

Allow guests to view individual groups #1635

Merged
merged 3 commits into from
Nov 28, 2017

Conversation

lukebarnard1
Copy link
Contributor

@lukebarnard1 lukebarnard1 commented Nov 28, 2017

If the server disallows guests from accessing them (if hasn't got matrix-org/synapse#2715), start ILAG with an intention to return to the group.

Fixes element-hq/element-web#5650

Also, use MatrixClientPeg in the GroupStore to prevent weirdness when logging out/in - we don't want to cache old sessions. In my mind, this is a reason to either:

  1. Not use MatrixClient directly in the app
  2. Indicate logout by setting state within the matrixClient itself.

For homeservers that still disallow guests (running synapse without matrix-org/synapse#2715), start ILAG.
To avoid weirdness with using a cached matrix client
@lukebarnard1
Copy link
Contributor Author

Test has flaked here.

Copy link
Member

@dbkr dbkr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, but boo that this is 10% actual change vs 90% removing a parameter

@dbkr dbkr assigned lukebarnard1 and unassigned dbkr Nov 28, 2017
@lukebarnard1
Copy link
Contributor Author

but boo that this is 10% actual change vs 90% removing a parameter

Why? I separated the commits. I realised that using a cached matrixClient affected the viewing of groups as a guest that does onboarding.

@lukebarnard1 lukebarnard1 merged commit 6761c9f into develop Nov 28, 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.

2 participants