Updated user lists

• Updated:
- user lists
- follow_requests, followers, following, mutes, blocks
This commit is contained in:
mgabdev
2020-06-09 16:47:12 -04:00
parent 26829507fc
commit ddcf85c672
10 changed files with 190 additions and 136 deletions

View File

@@ -284,11 +284,10 @@ export function expandMembers(id) {
return (dispatch, getState) => {
if (!me) return;
const url = getState().getIn(['user_lists', 'groups', id, 'next']);
const url = getState().getIn(['user_lists', 'groups', id, 'next'])
const isLoading = getState().getIn(['user_lists', 'groups', id, 'isLoading'])
if (url === null) {
return;
}
if (url === null || isLoading) return
dispatch(expandMembersRequest(id));
@@ -375,10 +374,9 @@ export function expandRemovedAccounts(id) {
if (!me) return;
const url = getState().getIn(['user_lists', 'groups_removed_accounts', id, 'next']);
const isLoading = getState().getIn(['user_lists', 'groups_removed_accounts', id, 'isLoading'])
if (url === null) {
return;
}
if (url === null || isLoading) return
dispatch(expandRemovedAccountsRequest(id));