Detach session activity update from statuses (#6379)

This commit is contained in:
Joram Wilander
2017-05-10 09:48:50 -04:00
committed by GitHub
parent b868aa1dc7
commit 0ae6886513
6 changed files with 30 additions and 13 deletions

View File

@@ -222,6 +222,7 @@ func (h handler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
if c.Err == nil && h.isUserActivity && token != "" && len(c.Session.UserId) > 0 {
app.SetStatusOnline(c.Session.UserId, c.Session.Id, false)
app.UpdateLastActivityAtIfNeeded(c.Session)
}
if c.Err == nil && (h.requireUser || h.requireSystemAdmin) {