Merge pull request #1652 from hmhealey/plt1319

PLT-1319 Fixed direct channels not being visible when no actual channel exists
Этот коммит содержится в:
Corey Hulen
2015-12-11 06:40:37 -08:00
родитель 607a8151de c55e7895d9
Коммит 412b45431a
10 изменённых файлов: 177 добавлений и 40 удалений

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

@@ -1138,6 +1138,11 @@ export function getUserIdFromChannelName(channel) {
return otherUserId;
}
// Returns true if the given channel is a direct channel between the current user and the given one
export function isDirectChannelForUser(otherUserId, channel) {
return channel.type === Constants.DM_CHANNEL && getUserIdFromChannelName(channel) === otherUserId;
}
export function importSlack(file, success, error) {
var formData = new FormData();
formData.append('file', file, file.name);