diff options
author | Joram Wilander <jwawilander@gmail.com> | 2017-10-03 14:16:33 -0400 |
---|---|---|
committer | Chris <ccbrown112@gmail.com> | 2017-10-03 11:16:33 -0700 |
commit | 3e144f82e29e566b3cf1615c19b4ddc6dc7e4694 (patch) | |
tree | 0a89d8b951bfdc549d0706ef205a96d2e3e86e82 /api4/channel.go | |
parent | 5e69ce099f521aa49fc267c62235c003eae530ff (diff) | |
download | chat-3e144f82e29e566b3cf1615c19b4ddc6dc7e4694.tar.gz chat-3e144f82e29e566b3cf1615c19b4ddc6dc7e4694.tar.bz2 chat-3e144f82e29e566b3cf1615c19b4ddc6dc7e4694.zip |
Only update session activity on specific endpoints (#7549)
Diffstat (limited to 'api4/channel.go')
-rw-r--r-- | api4/channel.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/api4/channel.go b/api4/channel.go index 74eb1a972..7a1324883 100644 --- a/api4/channel.go +++ b/api4/channel.go @@ -716,6 +716,8 @@ func viewChannel(c *Context, w http.ResponseWriter, r *http.Request) { return } + c.App.UpdateLastActivityAtIfNeeded(c.Session) + // Returning {"status": "OK", ...} for backwards compatability resp := &model.ChannelViewResponse{ Status: "OK", |