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

Show session restore errors on the login screen #435

Merged
merged 2 commits into from
Sep 2, 2016

Conversation

richvdh
Copy link
Member

@richvdh richvdh commented Sep 1, 2016

If we are unable to load the matrix session on startup, don't just get stuck at
a spinner; instead, show the error on the login screen.

If we are unable to load the matrix session on startup, don't just get stuck at
a spinner; instead, show the error on the login screen.
guestHsUrl: this.getCurrentHsUrl(),
guestIsUrl: this.getCurrentIsUrl(),
defaultDeviceDisplayName: this.props.defaultDeviceDisplayName,
q().then(() => {
Copy link
Member

Choose a reason for hiding this comment

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

i'm a little confused as to why we have to wrap the .loadSession in a q().then() rather than just just doing loadSession.catch().done()? Might be worth commenting it given the subtlety.

@ara4n
Copy link
Member

ara4n commented Sep 1, 2016

lgtm mod comment

@ara4n ara4n assigned richvdh and unassigned ara4n Sep 1, 2016
@richvdh richvdh assigned ara4n and unassigned richvdh Sep 1, 2016
@richvdh
Copy link
Member Author

richvdh commented Sep 1, 2016

@ara4n: I added a comment. Does it make sense to you?

@ara4n
Copy link
Member

ara4n commented Sep 2, 2016

it does indeed - thanks :) lgtm

@richvdh richvdh merged commit b4521bc into develop Sep 2, 2016
@richvdh richvdh deleted the rav/show_session_load_errors branch September 2, 2016 10:03
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