remove user-list unused code

This commit is contained in:
Ramon Souza 2021-04-26 10:04:09 -03:00
parent 3455b20501
commit 4242158711
3 changed files with 0 additions and 44 deletions

View File

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

View File

@ -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',

View File

@ -584,7 +584,6 @@ class UserDropdown extends PureComponent {
isActionsOpen,
dropdownVisible,
dropdownDirection,
dropdownOffset,
showNestedOptions,
} = this.state;