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

Этот коммит содержится в:
Joram Wilander
2016-05-06 12:08:58 -04:00
родитель d2f9fd52fe
Коммит 0cfcf5c5de
7 изменённых файлов: 47 добавлений и 4 удалений

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

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