Commit b7c72c56 authored by Harrison Healey's avatar Harrison Healey Committed by Corey Hulen

PLT-6788 Stopped filtering custom emojis by creator's full name or nickname (#6662)

parent 691039b1
......@@ -41,13 +41,8 @@ export default class EmojiListItem extends React.Component {
return true;
}
if (creator) {
if (creator.username.toLowerCase().indexOf(filter) !== -1 ||
(creator.first_name && creator.first_name.toLowerCase().indexOf(filter) !== -1) ||
(creator.last_name && creator.last_name.toLowerCase().indexOf(filter) !== -1) ||
(creator.nickname && creator.nickname.toLowerCase().indexOf(filter) !== -1)) {
return true;
}
if (creator && creator.username && creator.username.toLowerCase().indexOf(filter) !== -1) {
return true;
}
return false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment