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

Implement basic soft logout handling #3177

Merged
merged 4 commits into from
Jul 4, 2019
Merged

Conversation

turt2live
Copy link
Member

@turt2live turt2live commented Jul 3, 2019

Fixes element-hq/element-web#10235
Requires matrix-org/matrix-js-sdk#975

CSS and copy are left as an exercise for a later iteration.

Login page handling is left for element-hq/element-web#10236

This implementation reuses as much of the Lifecycle flow as it can without causing problems. Most importantly, it requires matrix-org/matrix-js-sdk#975 to be able to detect a soft logout and react to it. When it comes time to starting/stopping the Lifecycle, additional parameters are provided so that the auxiliary services can (re)start themselves without the client starting to sync.

Fixes element-hq/element-web#10235

CSS and copy are left as an exercise for a later iteration.

Login page handling is left for element-hq/element-web#10236

This implementation reuses as much of the Lifecycle flow as it can without causing problems. Most importantly, it requires matrix-org/matrix-js-sdk#975 to be able to detect a soft logout and react to it. When it comes time to starting/stopping the Lifecycle, additional parameters are provided so that the auxiliary services can (re)start themselves without the client starting to sync.
@turt2live turt2live requested a review from a team July 3, 2019 23:03
@bwindels bwindels requested review from bwindels and removed request for a team July 4, 2019 08:07
Copy link
Contributor

@bwindels bwindels left a comment

Choose a reason for hiding this comment

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

Looks good, just wondering if/how storage won't get cleared upon re-login?

src/components/structures/MatrixChat.js Outdated Show resolved Hide resolved
src/components/structures/MatrixChat.js Outdated Show resolved Hide resolved
src/components/structures/MatrixChat.js Outdated Show resolved Hide resolved
src/Lifecycle.js Show resolved Hide resolved
@turt2live turt2live requested a review from bwindels July 4, 2019 15:59
Copy link
Contributor

@bwindels bwindels left a comment

Choose a reason for hiding this comment

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

Thanks! Good to go, if you're sure page_type is optional 👍

@turt2live
Copy link
Member Author

it didn't format my cat when I removed it, so it's probably fine. I'll make a note to do more durable testing on it

@turt2live turt2live merged commit f3c6c73 into develop Jul 4, 2019
@turt2live turt2live deleted the travis/soft-logout-base branch July 4, 2019 16:22
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.

Soft logout: Actually show the page
2 participants