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