From 0f9a4593db4b5d88f936b07c8ea86fab54de0e1c Mon Sep 17 00:00:00 2001 From: Pierre Lehnen Date: Fri, 11 Sep 2020 10:10:24 -0300 Subject: [PATCH] [FIX] Ignore User action not working --- client/channel/hooks/useUserInfoActions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/channel/hooks/useUserInfoActions.js b/client/channel/hooks/useUserInfoActions.js index 155511438e81..0ce6d9e95faf 100644 --- a/client/channel/hooks/useUserInfoActions.js +++ b/client/channel/hooks/useUserInfoActions.js @@ -234,7 +234,7 @@ export const useUserInfoActions = (user = {}, rid) => { const ignoreUser = useMethod('ignoreUser'); const ignoreUserAction = useMutableCallback(async () => { try { - await ignoreUser({ rid, ignoredUser: uid, ignore: !isIgnored }); + await ignoreUser({ rid, userId: uid, ignore: !isIgnored }); dispatchToastMessage({ type: 'success', message: t('User_has_been_unignored') }); } catch (error) { dispatchToastMessage({ type: 'error', message: error });