Add separator between DMs on your team and not (#2910)

This commit is contained in:
Joram Wilander
2016-05-06 12:08:58 -04:00
parent d2f9fd52fe
commit 0cfcf5c5de
7 changed files with 47 additions and 4 deletions

View File

@@ -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
}
}