summaryrefslogtreecommitdiffstats
path: root/api/channel.go
diff options
context:
space:
mode:
Diffstat (limited to 'api/channel.go')
-rw-r--r--api/channel.go4
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
}
}