Status redesign: Fixes bug with media modal (#40423)

This commit is contained in:
Echo
2026-09-08 11:24:49 +00:00
committed by GitHub
parent 45c665a45f
commit 867206c683

View File

@@ -142,11 +142,16 @@ const MediaAttachments: React.FC<{
dispatch(
openModal({
modalType: 'MEDIA',
modalProps: { statusId, media: attachment, index, lang: language },
modalProps: {
statusId,
media: immutableAttachments,
index,
lang: language,
},
}),
);
},
[attachment, dispatch, language, statusId],
[immutableAttachments, dispatch, language, statusId],
);
const handleOpenVideo = useCallback(
(options: {