From 0ae68865138458f2f8fd36bbbba07728c88609d7 Mon Sep 17 00:00:00 2001 From: Joram Wilander Date: Wed, 10 May 2017 09:48:50 -0400 Subject: Detach session activity update from statuses (#6379) --- app/status.go | 5 ----- 1 file changed, 5 deletions(-) (limited to 'app/status.go') diff --git a/app/status.go b/app/status.go index dd57b82b2..f0a26e6eb 100644 --- a/app/status.go +++ b/app/status.go @@ -195,7 +195,6 @@ func SetStatusOnline(userId string, sessionId string, manual bool) { // Only update the database if the status has changed, the status has been manually set, // or enough time has passed since the previous action if status.Status != oldStatus || status.Manual != oldManual || status.LastActivityAt-oldTime > model.STATUS_MIN_UPDATE_TIME { - achan := Srv.Store.Session().UpdateLastActivityAt(sessionId, status.LastActivityAt) var schan store.StoreChannel if broadcast { @@ -204,10 +203,6 @@ func SetStatusOnline(userId string, sessionId string, manual bool) { schan = Srv.Store.Status().UpdateLastActivityAt(status.UserId, status.LastActivityAt) } - if result := <-achan; result.Err != nil { - l4g.Error(utils.T("api.status.last_activity.error"), userId, sessionId, result.Err) - } - if result := <-schan; result.Err != nil { l4g.Error(utils.T("api.status.save_status.error"), userId, result.Err) } -- cgit v1.2.3-1-g7c22