You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-28 15:22:05 +03:00
Merge branch 'develop' into new-guest-access
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user