diff options
author | Joram Wilander <jwawilander@gmail.com> | 2016-05-06 12:08:58 -0400 |
---|---|---|
committer | Joram Wilander <jwawilander@gmail.com> | 2016-05-06 12:08:58 -0400 |
commit | 0cfcf5c5decc89a8a8070272f92da0c0ae49693d (patch) | |
tree | ba2018c98116b80c33b3c33fcdece64e908bea72 /api | |
parent | d2f9fd52fe8b0da6f23775f242660329fcef6421 (diff) | |
download | chat-0cfcf5c5decc89a8a8070272f92da0c0ae49693d.tar.gz chat-0cfcf5c5decc89a8a8070272f92da0c0ae49693d.tar.bz2 chat-0cfcf5c5decc89a8a8070272f92da0c0ae49693d.zip |
Add separator between DMs on your team and not (#2910)
Diffstat (limited to 'api')
-rw-r--r-- | api/channel.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/api/channel.go b/api/channel.go index 7cfc22833..b63e44017 100644 --- a/api/channel.go +++ b/api/channel.go @@ -152,6 +152,10 @@ func CreateDirectChannel(userId string, otherUserId string) (*model.Channel, *mo return nil, result.Err } } else { + message := model.NewMessage("", channel.Id, userId, model.ACTION_DIRECT_ADDED) + message.Add("teammate_id", otherUserId) + PublishAndForget(message) + return result.Data.(*model.Channel), nil } } |