Skip to content

Commit f292d8a

Browse files
committed
fix: react modal click on avatar does not close the dialog
1 parent 22f993b commit f292d8a

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

ts/components/dialog/ReactListModal.tsx

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -92,12 +92,11 @@ type ReactionSendersProps = {
9292
currentReact: string;
9393
senders: Array<string>;
9494
me: string;
95-
handleClose: () => void;
9695
conversationId: string;
9796
};
9897

9998
const ReactionSenders = (props: ReactionSendersProps) => {
100-
const { messageId, currentReact, senders, me, handleClose, conversationId } = props;
99+
const { messageId, currentReact, senders, me, conversationId } = props;
101100
const dispatch = useDispatch();
102101

103102
const handleRemoveReaction = async () => {
@@ -123,13 +122,7 @@ const ReactionSenders = (props: ReactionSendersProps) => {
123122
style={{ overflow: 'hidden' }}
124123
$flexGap="var(--margins-sm)"
125124
>
126-
<Avatar
127-
size={AvatarSize.XS}
128-
pubkey={sender}
129-
onAvatarClick={() => {
130-
handleClose();
131-
}}
132-
/>
125+
<Avatar size={AvatarSize.XS} pubkey={sender} onAvatarClick={undefined} />
133126
{sender === me ? (
134127
tr('you')
135128
) : (
@@ -363,7 +356,6 @@ export const ReactListModal = (props: Props) => {
363356
currentReact={currentReact}
364357
senders={senders}
365358
me={me}
366-
handleClose={handleClose}
367359
conversationId={selectedConvoKey}
368360
/>
369361
)}

0 commit comments

Comments
 (0)