diff options
author | hmhealey <harrisonmhealey@gmail.com> | 2016-02-02 10:52:18 -0500 |
---|---|---|
committer | hmhealey <harrisonmhealey@gmail.com> | 2016-02-04 11:38:56 -0500 |
commit | fcb92fa1b53a2b67323a881e7cb03965d3ec24d1 (patch) | |
tree | f9e9c4470fdb98c558ba6db4e5ebb08fc2a4a617 /api/web_team_hub.go | |
parent | db13b7a3ca3d3099392be557e47f838a7851a69a (diff) | |
download | chat-fcb92fa1b53a2b67323a881e7cb03965d3ec24d1.tar.gz chat-fcb92fa1b53a2b67323a881e7cb03965d3ec24d1.tar.bz2 chat-fcb92fa1b53a2b67323a881e7cb03965d3ec24d1.zip |
Added ephemeral messages sent when a user mentions someone not in the channel
Diffstat (limited to 'api/web_team_hub.go')
-rw-r--r-- | api/web_team_hub.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/api/web_team_hub.go b/api/web_team_hub.go index 55300c828..9d1c56f15 100644 --- a/api/web_team_hub.go +++ b/api/web_team_hub.go @@ -101,6 +101,9 @@ func ShouldSendEvent(webCon *WebConn, msg *model.Message) bool { return false } else if msg.Action == model.ACTION_PREFERENCE_CHANGED { return false + } else if msg.Action == model.ACTION_EPHEMERAL_MESSAGE { + // For now, ephemeral messages are sent directly to individual users + return false } // Only report events to a user who is the subject of the event, or is in the channel of the event |