remove user-list unused code
This commit is contained in:
parent
3455b20501
commit
4242158711
@ -23,19 +23,6 @@ const DIAL_IN_CLIENT_TYPE = 'dial-in-user';
|
||||
// session for closed chat list
|
||||
const CLOSED_CHAT_LIST_KEY = 'closedChatList';
|
||||
|
||||
const mapActiveChats = (chat) => {
|
||||
const currentUserId = Auth.userID;
|
||||
|
||||
const { chatId } = chat;
|
||||
|
||||
const userId = GroupChat
|
||||
.findOne({ chatId })
|
||||
.participants
|
||||
.filter(user => user.id !== currentUserId);
|
||||
|
||||
return userId[0];
|
||||
};
|
||||
|
||||
const CUSTOM_LOGO_URL_KEY = 'CustomLogoUrl';
|
||||
|
||||
export const setCustomLogoUrl = path => Storage.setItem(CUSTOM_LOGO_URL_KEY, path);
|
||||
@ -53,9 +40,6 @@ const sortByWhiteboardAccess = (a, b) => {
|
||||
};
|
||||
|
||||
const sortUsersByUserId = (a, b) => {
|
||||
const aUserId = a.userId;
|
||||
const bUserId = b.userId;
|
||||
|
||||
if (a.userId > b.userId) {
|
||||
return -1;
|
||||
} if (a.userId < b.userId) {
|
||||
@ -185,24 +169,6 @@ const isPublicChat = chat => (
|
||||
chat.userId === 'public'
|
||||
);
|
||||
|
||||
const sortChats = (a, b) => {
|
||||
let sort = sortChatsByIcon(a, b);
|
||||
|
||||
if (sort === 0) {
|
||||
sort = sortByRecentActivity(a, b);
|
||||
}
|
||||
|
||||
if (sort === 0) {
|
||||
sort = sortChatsByName(a, b);
|
||||
}
|
||||
|
||||
if (sort === 0) {
|
||||
sort = sortChatsByUserId(a, b);
|
||||
}
|
||||
|
||||
return sort;
|
||||
};
|
||||
|
||||
const userFindSorting = {
|
||||
emojiTime: 1,
|
||||
role: 1,
|
||||
|
@ -31,15 +31,6 @@ const defaultProps = {
|
||||
compact: false,
|
||||
};
|
||||
|
||||
const listTransition = {
|
||||
enter: styles.enter,
|
||||
enterActive: styles.enterActive,
|
||||
appear: styles.appear,
|
||||
appearActive: styles.appearActive,
|
||||
leave: styles.leave,
|
||||
leaveActive: styles.leaveActive,
|
||||
};
|
||||
|
||||
const intlMessages = defineMessages({
|
||||
usersTitle: {
|
||||
id: 'app.userList.usersTitle',
|
||||
|
@ -584,7 +584,6 @@ class UserDropdown extends PureComponent {
|
||||
isActionsOpen,
|
||||
dropdownVisible,
|
||||
dropdownDirection,
|
||||
dropdownOffset,
|
||||
showNestedOptions,
|
||||
} = this.state;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user