Fix unread for your own message after logout (#4943)

Этот коммит содержится в:
Joram Wilander
2017-01-03 12:37:47 -05:00
коммит произвёл Corey Hulen
родитель e74c66d7f6
Коммит 2308499fa4
2 изменённых файлов: 4 добавлений и 1 удалений

Просмотреть файл

@@ -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 = [];