diff options
author | Joram Wilander <jwawilander@gmail.com> | 2016-12-21 16:35:01 -0500 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2016-12-21 16:35:01 -0500 |
commit | ba6e370ca71abacaa30234cb164427d27c86df13 (patch) | |
tree | 2379b6dab897deef1226f66772b8f05e0bb08f9c /webapp/actions/channel_actions.jsx | |
parent | 139cb52c99ac525f44a280803447bbbd88369f23 (diff) | |
download | chat-ba6e370ca71abacaa30234cb164427d27c86df13.tar.gz chat-ba6e370ca71abacaa30234cb164427d27c86df13.tar.bz2 chat-ba6e370ca71abacaa30234cb164427d27c86df13.zip |
PLT-5012 Combine updateLastViewedAt, setLastViewedAt and setActiveChannel into a single API (#4840)
* Combine updateLastViewedAt, setLastViewedAt and setActiveChannel into a single API
* Remove preference DB writes
Diffstat (limited to 'webapp/actions/channel_actions.jsx')
-rw-r--r-- | webapp/actions/channel_actions.jsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/webapp/actions/channel_actions.jsx b/webapp/actions/channel_actions.jsx index ad2f315ee..952c8ada3 100644 --- a/webapp/actions/channel_actions.jsx +++ b/webapp/actions/channel_actions.jsx @@ -53,7 +53,7 @@ export function executeCommand(message, args, success, error) { export function setChannelAsRead(channelIdParam) { const channelId = channelIdParam || ChannelStore.getCurrentId(); - AsyncClient.updateLastViewedAt(); + AsyncClient.viewChannel(); ChannelStore.resetCounts(channelId); ChannelStore.emitChange(); if (channelId === ChannelStore.getCurrentId()) { |