summaryrefslogtreecommitdiffstats
path: root/api4/context.go
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2017-10-03 14:16:33 -0400
committerChris <ccbrown112@gmail.com>2017-10-03 11:16:33 -0700
commit3e144f82e29e566b3cf1615c19b4ddc6dc7e4694 (patch)
tree0a89d8b951bfdc549d0706ef205a96d2e3e86e82 /api4/context.go
parent5e69ce099f521aa49fc267c62235c003eae530ff (diff)
downloadchat-3e144f82e29e566b3cf1615c19b4ddc6dc7e4694.tar.gz
chat-3e144f82e29e566b3cf1615c19b4ddc6dc7e4694.tar.bz2
chat-3e144f82e29e566b3cf1615c19b4ddc6dc7e4694.zip
Only update session activity on specific endpoints (#7549)
Diffstat (limited to 'api4/context.go')
-rw-r--r--api4/context.go1
1 files changed, 0 insertions, 1 deletions
diff --git a/api4/context.go b/api4/context.go
index 9af15d72b..c526f38bb 100644
--- a/api4/context.go
+++ b/api4/context.go
@@ -157,7 +157,6 @@ func (h handler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
c.Err = model.NewAppError("ServeHTTP", "api.context.token_provided.app_error", nil, "token="+token, http.StatusUnauthorized)
} else {
c.Session = *session
- c.App.UpdateLastActivityAtIfNeeded(*session)
}
}