diff options
author | Joram Wilander <jwawilander@gmail.com> | 2015-11-04 09:43:06 -0500 |
---|---|---|
committer | Joram Wilander <jwawilander@gmail.com> | 2015-11-04 09:43:06 -0500 |
commit | 559ca09f2ce72306ea33366f2972be6d22656fc7 (patch) | |
tree | bc88626a1c47b9821e576c42fcee3f89f83f3b6c /web/react/components/channel_loader.jsx | |
parent | 56ce3bc99735fe7ef7d4bf5f783c3d6f01a3a878 (diff) | |
parent | ee66b089349d46695bbe652b381da4be2b67954b (diff) | |
download | chat-559ca09f2ce72306ea33366f2972be6d22656fc7.tar.gz chat-559ca09f2ce72306ea33366f2972be6d22656fc7.tar.bz2 chat-559ca09f2ce72306ea33366f2972be6d22656fc7.zip |
Merge pull request #1289 from mattermost/plt-516-2
PLT-516 Part 1 of performance fixes for large teams
Diffstat (limited to 'web/react/components/channel_loader.jsx')
-rw-r--r-- | web/react/components/channel_loader.jsx | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/web/react/components/channel_loader.jsx b/web/react/components/channel_loader.jsx index 55b4a55c0..4fc115a92 100644 --- a/web/react/components/channel_loader.jsx +++ b/web/react/components/channel_loader.jsx @@ -30,19 +30,14 @@ export default class ChannelLoader extends React.Component { AsyncClient.getChannels(true, true); AsyncClient.getChannelExtraInfo(true); AsyncClient.findTeams(); - AsyncClient.getStatuses(); AsyncClient.getMyTeam(); + setTimeout(() => AsyncClient.getStatuses(), 3000); // temporary until statuses are reworked a bit /* Perform pending post clean-up */ PostStore.clearPendingPosts(); /* Set up interval functions */ - this.intervalId = setInterval( - function pollStatuses() { - AsyncClient.getStatuses(); - }, - 30000 - ); + this.intervalId = setInterval(() => AsyncClient.getStatuses(), 30000); /* Device tracking setup */ var iOS = (/(iPad|iPhone|iPod)/g).test(navigator.userAgent); |