Skip to content

Commit

Permalink
[PAY-1207] Use Followers instead of Mutuals on compose chat modal (#3323
Browse files Browse the repository at this point in the history
)
  • Loading branch information
rickyrombo authored May 4, 2023
1 parent 03c587d commit 47a5e84
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions packages/web/src/pages/chat-page/components/CreateChatModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ import { useCallback, useEffect } from 'react'
import {
accountSelectors,
chatActions,
mutualsUserListActions,
mutualsUserListSelectors,
MUTUALS_USER_LIST_TAG,
userListActions
userListActions,
FOLLOWERS_USER_LIST_TAG,
followersUserListActions,
followersUserListSelectors
} from '@audius/common'
import { IconCompose } from '@audius/stems'
import { useDispatch } from 'react-redux'
Expand All @@ -31,13 +31,13 @@ export const CreateChatModal = () => {
const [isVisible] = useModalState(CREATE_CHAT_MODAL)

const { userIds, loading, hasMore } = useSelector(
mutualsUserListSelectors.getUserList
followersUserListSelectors.getUserList
)

const loadMore = useCallback(() => {
if (currentUser) {
dispatch(mutualsUserListActions.setMutuals(currentUser?.user_id))
dispatch(userListActions.loadMore(MUTUALS_USER_LIST_TAG))
dispatch(followersUserListActions.setFollowers(currentUser?.user_id))
dispatch(userListActions.loadMore(FOLLOWERS_USER_LIST_TAG))
}
}, [dispatch, currentUser])

Expand Down

0 comments on commit 47a5e84

Please sign in to comment.