Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/components/structures/MatrixChat.js
Original file line number Diff line number Diff line change
Expand Up @@ -1839,6 +1839,12 @@ export default React.createClass({
defaultIsUrl: isUrl,
loadingDefaultHomeserver: false,
});

// Change over the guest account, if one exists
if (MatrixClientPeg.get() && MatrixClientPeg.get().isGuest()) {
console.log("Discovered homeserver URLs - logging out current guest to use the homeserver");
Lifecycle.logout().then(() => this._loadSession());
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Huh, so this will remake a new guest account once we discover the HS?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

yup, although it could probably do with a comment (or even better: not doing this and actually implementing the plan we talked about)

}
}
} catch (e) {
console.error(e);
Expand Down