summaryrefslogtreecommitdiffstats
path: root/api/context.go
diff options
context:
space:
mode:
authorDmitri Aizenberg <dmitri.aiz@gmail.com>2016-08-31 06:24:14 -0700
committerJoram Wilander <jwawilander@gmail.com>2016-08-31 09:24:14 -0400
commitdc09b7781ac310646014f05db23844ab2c6d63f4 (patch)
tree906f13501b8e30be3551fa18078429445e5ee094 /api/context.go
parentdb660bdf9cbea09197d8292a8ec8efda8ac41f38 (diff)
downloadchat-dc09b7781ac310646014f05db23844ab2c6d63f4.tar.gz
chat-dc09b7781ac310646014f05db23844ab2c6d63f4.tar.bz2
chat-dc09b7781ac310646014f05db23844ab2c6d63f4.zip
PLT-1527 Add a slash command to set yourself away (#3752)
* added handlers for slash commands * added manual status persistance * added tests * removed extra debug output and comments * rebase - fixing the PR * making echo messages after slash commands ephemeral
Diffstat (limited to 'api/context.go')
-rw-r--r--api/context.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/context.go b/api/context.go
index c2b7a42cb..37b426c21 100644
--- a/api/context.go
+++ b/api/context.go
@@ -207,7 +207,7 @@ func (h handler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
}
if c.Err == nil && h.isUserActivity && token != "" && len(c.Session.UserId) > 0 {
- SetStatusOnline(c.Session.UserId, c.Session.Id)
+ SetStatusOnline(c.Session.UserId, c.Session.Id, false)
}
if c.Err == nil {