summaryrefslogtreecommitdiffstats
path: root/api/channel.go
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2016-05-06 12:08:58 -0400
committerJoram Wilander <jwawilander@gmail.com>2016-05-06 12:08:58 -0400
commit0cfcf5c5decc89a8a8070272f92da0c0ae49693d (patch)
treeba2018c98116b80c33b3c33fcdece64e908bea72 /api/channel.go
parentd2f9fd52fe8b0da6f23775f242660329fcef6421 (diff)
downloadchat-0cfcf5c5decc89a8a8070272f92da0c0ae49693d.tar.gz
chat-0cfcf5c5decc89a8a8070272f92da0c0ae49693d.tar.bz2
chat-0cfcf5c5decc89a8a8070272f92da0c0ae49693d.zip
Add separator between DMs on your team and not (#2910)
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
}
}