mirror of
https://github.com/element-hq/element-web
synced 2024-11-27 19:56:47 +03:00
s/login/setLoggedIn/
This commit is contained in:
parent
3818a89ca3
commit
58bbb35096
2 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
};
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue