From 2308499fa46a31b455663c164e218a5e3bae6042 Mon Sep 17 00:00:00 2001 From: Joram Wilander Date: Tue, 3 Jan 2017 12:37:47 -0500 Subject: Fix unread for your own message after logout (#4943) --- webapp/stores/channel_store.jsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'webapp/stores') diff --git a/webapp/stores/channel_store.jsx b/webapp/stores/channel_store.jsx index 0264ada4a..c93edf7f4 100644 --- a/webapp/stores/channel_store.jsx +++ b/webapp/stores/channel_store.jsx @@ -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 = []; -- cgit v1.2.3-1-g7c22