s/login/setLoggedIn/

This commit is contained in:
David Baker 2016-08-02 18:48:27 +01:00
parent 3818a89ca3
commit 58bbb35096
2 changed files with 4 additions and 4 deletions

View file

@ -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
};

View file

@ -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) {