Profile: Fix duplicated usernames (#2212)
This commit is contained in:
parent
349666c42c
commit
2ddd454ef2
@ -80,10 +80,10 @@ const ChatExtra: FC<OwnProps & StateProps> = ({
|
|||||||
return result?.length ? result : undefined;
|
return result?.length ? result : undefined;
|
||||||
}, [usernames]);
|
}, [usernames]);
|
||||||
const activeChatUsernames = useMemo(() => {
|
const activeChatUsernames = useMemo(() => {
|
||||||
const result = chatUsernames?.filter((u) => u.isActive);
|
const result = !user ? chatUsernames?.filter((u) => u.isActive) : undefined;
|
||||||
|
|
||||||
return result?.length ? result : undefined;
|
return result?.length ? result : undefined;
|
||||||
}, [chatUsernames]);
|
}, [chatUsernames, user]);
|
||||||
const link = useMemo(() => (chat ? getChatLink(chat) : undefined), [chat]);
|
const link = useMemo(() => (chat ? getChatLink(chat) : undefined), [chat]);
|
||||||
|
|
||||||
const handleNotificationChange = useCallback(() => {
|
const handleNotificationChange = useCallback(() => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user