diff --git a/src/Lifecycle.js b/src/Lifecycle.js index 86fa39cb51..53180b24dd 100644 --- a/src/Lifecycle.js +++ b/src/Lifecycle.js @@ -20,7 +20,7 @@ import UserActivity from './UserActivity'; import Presence from './Presence'; import dis from './dispatcher'; -function login(credentials, options) { +function setLoggedIn(credentials, options) { credentials.guest = Boolean(credentials.guest); console.log("onLoggedIn => %s (guest=%s)", credentials.userId, credentials.guest); MatrixClientPeg.replaceUsingAccessToken( @@ -94,5 +94,5 @@ function _stopMatrixClient() { } module.exports = { - login, logout, startMatrixClient + setLoggedIn, logout, startMatrixClient }; diff --git a/src/components/structures/MatrixChat.js b/src/components/structures/MatrixChat.js index d0ff91fa3b..2783f2ee82 100644 --- a/src/components/structures/MatrixChat.js +++ b/src/components/structures/MatrixChat.js @@ -580,14 +580,14 @@ module.exports = React.createClass({ }, _doLogin(creds) { - Lifecycle.login(creds, { + Lifecycle.setLoggedIn(creds, { syncTimelineLimit: this.props.config.sync_timeline_limit, }); }, _onHaveCredentials: function(credentials) { credentials.guest = Boolean(credentials.guest); - Lifecycle.login(credentials); + Lifecycle.setLoggedIn(credentials); }, _onLoggedIn: function(credentials) {