summaryrefslogtreecommitdiffstats
path: root/app/status.go
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2017-05-10 09:48:50 -0400
committerGitHub <noreply@github.com>2017-05-10 09:48:50 -0400
commit0ae68865138458f2f8fd36bbbba07728c88609d7 (patch)
tree0fccc445d8567faeaf0f4f9a4e76b3d9bcb3c24b /app/status.go
parentb868aa1dc7af16ddea8f65ed60683a6f440567ec (diff)
downloadchat-0ae68865138458f2f8fd36bbbba07728c88609d7.tar.gz
chat-0ae68865138458f2f8fd36bbbba07728c88609d7.tar.bz2
chat-0ae68865138458f2f8fd36bbbba07728c88609d7.zip
Detach session activity update from statuses (#6379)
Diffstat (limited to 'app/status.go')
-rw-r--r--app/status.go5
1 files changed, 0 insertions, 5 deletions
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)
}