Fix unread for your own message after logout (#4943)
Этот коммит содержится в:
коммит произвёл
Corey Hulen
родитель
e74c66d7f6
Коммит
2308499fa4
@@ -490,6 +490,7 @@ export function clientLogout(redirectTo = '/') {
|
|||||||
PreferenceStore.clear();
|
PreferenceStore.clear();
|
||||||
UserStore.clear();
|
UserStore.clear();
|
||||||
TeamStore.clear();
|
TeamStore.clear();
|
||||||
|
ChannelStore.clear();
|
||||||
newLocalizationSelected(global.window.mm_config.DefaultClientLocale);
|
newLocalizationSelected(global.window.mm_config.DefaultClientLocale);
|
||||||
stopPeriodicStatusUpdates();
|
stopPeriodicStatusUpdates();
|
||||||
WebsocketActions.close();
|
WebsocketActions.close();
|
||||||
|
|||||||
@@ -17,9 +17,11 @@ const LAST_VIEVED_EVENT = 'last_viewed';
|
|||||||
class ChannelStoreClass extends EventEmitter {
|
class ChannelStoreClass extends EventEmitter {
|
||||||
constructor(props) {
|
constructor(props) {
|
||||||
super(props);
|
super(props);
|
||||||
|
|
||||||
this.setMaxListeners(600);
|
this.setMaxListeners(600);
|
||||||
|
this.clear();
|
||||||
|
}
|
||||||
|
|
||||||
|
clear() {
|
||||||
this.currentId = null;
|
this.currentId = null;
|
||||||
this.postMode = this.POST_MODE_CHANNEL;
|
this.postMode = this.POST_MODE_CHANNEL;
|
||||||
this.channels = [];
|
this.channels = [];
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user