[Glitch] Fix new profile dropdown blocking without confirmation modal
Port 99a219036f to glitch-soc
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
1 parent
8032905c55
commit
979b1a78cb
1 file changed
+2
-2
@@ -4,7 +4,6 @@ import type { FC } from 'react';
|
||||
import { defineMessages, useIntl } from 'react-intl';
|
||||
|
||||
import {
|
||||
blockAccount,
|
||||
followAccount,
|
||||
pinAccount,
|
||||
unblockAccount,
|
||||
@@ -13,6 +12,7 @@ import {
|
||||
} from '@/flavours/glitch/actions/accounts';
|
||||
import { removeAccountFromFollowers } from '@/flavours/glitch/actions/accounts_typed';
|
||||
import { showAlert } from '@/flavours/glitch/actions/alerts';
|
||||
import { initBlockModal } from '@/flavours/glitch/actions/blocks';
|
||||
import {
|
||||
directCompose,
|
||||
mentionCompose,
|
||||
@@ -438,7 +438,7 @@ function redesignMenuItems({
|
||||
if (relationship?.blocking) {
|
||||
dispatch(unblockAccount(account.id));
|
||||
} else {
|
||||
dispatch(blockAccount(account.id));
|
||||
dispatch(initBlockModal(account));
|
||||
}
|
||||
},
|
||||
dangerous: true,
|
||||
|
||||
Reference in new issue
Block a user