diff options
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 } } |