Changed Sidebar direct channel list to be driven by preferences
Этот коммит содержится в:
@@ -1137,6 +1137,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);
|
||||
@@ -1252,4 +1257,4 @@ export function isFeatureEnabled(feature) {
|
||||
|
||||
export function isSystemMessage(post) {
|
||||
return post.type && (post.type.lastIndexOf(Constants.SYSTEM_MESSAGE_PREFIX) === 0);
|
||||
}
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user