Merge branch 'develop' into new-guest-access
This commit is contained in:
commit
e30e45a82c
57 changed files with 1866 additions and 322 deletions
|
@ -19,6 +19,7 @@ import q from 'q';
|
|||
import Matrix from 'matrix-js-sdk';
|
||||
|
||||
import MatrixClientPeg from './MatrixClientPeg';
|
||||
import Analytics from './Analytics';
|
||||
import Notifier from './Notifier';
|
||||
import UserActivity from './UserActivity';
|
||||
import Presence from './Presence';
|
||||
|
@ -284,6 +285,8 @@ export function initRtsClient(url) {
|
|||
export function setLoggedIn(credentials) {
|
||||
credentials.guest = Boolean(credentials.guest);
|
||||
|
||||
Analytics.setGuest(credentials.guest);
|
||||
|
||||
console.log(
|
||||
"setLoggedIn: mxid:", credentials.userId,
|
||||
"deviceId:", credentials.deviceId,
|
||||
|
@ -421,6 +424,7 @@ export function onLoggedOut() {
|
|||
}
|
||||
|
||||
function _clearLocalStorage() {
|
||||
Analytics.logout();
|
||||
if (!window.localStorage) {
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue