From 0cfcf5c5decc89a8a8070272f92da0c0ae49693d Mon Sep 17 00:00:00 2001 From: Joram Wilander Date: Fri, 6 May 2016 12:08:58 -0400 Subject: Add separator between DMs on your team and not (#2910) --- api/channel.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'api') 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 } } -- cgit v1.2.3-1-g7c22