Этот коммит содержится в:
JoramWilander
2015-09-21 14:22:23 -04:00
родитель 86429c7bd5
Коммит 98186e5018
31 изменённых файлов: 1284 добавлений и 102 удалений

Просмотреть файл

@@ -121,11 +121,7 @@ func CreateDirectChannel(c *Context, otherUserId string) (*model.Channel, *model
channel := new(model.Channel)
channel.DisplayName = ""
if otherUserId > c.Session.UserId {
channel.Name = c.Session.UserId + "__" + otherUserId
} else {
channel.Name = otherUserId + "__" + c.Session.UserId
}
channel.Name = model.GetDMNameFromIds(otherUserId, c.Session.UserId)
channel.TeamId = c.Session.TeamId
channel.Description = ""