Merge pull request #1652 from hmhealey/plt1319
PLT-1319 Fixed direct channels not being visible when no actual channel exists
Этот коммит содержится в:
@@ -35,6 +35,7 @@ export default {
|
||||
RECIEVED_AUDITS: null,
|
||||
RECIEVED_TEAMS: null,
|
||||
RECIEVED_STATUSES: null,
|
||||
RECIEVED_PREFERENCE: null,
|
||||
RECIEVED_PREFERENCES: null,
|
||||
|
||||
RECIEVED_MSG: null,
|
||||
@@ -74,7 +75,8 @@ export default {
|
||||
NEW_USER: 'new_user',
|
||||
USER_ADDED: 'user_added',
|
||||
USER_REMOVED: 'user_removed',
|
||||
TYPING: 'typing'
|
||||
TYPING: 'typing',
|
||||
PREFERENCE_CHANGED: 'preference_changed'
|
||||
},
|
||||
|
||||
//SPECIAL_MENTIONS: ['all', 'channel'],
|
||||
|
||||
@@ -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);
|
||||
|
||||
Ссылка в новой задаче
Block a user