diff --git a/src/app/features/room/MessageOptionsMenu.tsx b/src/app/features/room/MessageOptionsMenu.tsx index 149fe303..98c4f680 100644 --- a/src/app/features/room/MessageOptionsMenu.tsx +++ b/src/app/features/room/MessageOptionsMenu.tsx @@ -24,7 +24,6 @@ type BaseOptionProps = { room: Room; mx: MatrixClient; relations: Relations | undefined; - eventId: string; canSendReaction: boolean | undefined; canEdit: boolean | undefined; canDelete: boolean | undefined; @@ -42,7 +41,6 @@ export function MessageDropdownMenu({ room, mx, relations, - eventId, canSendReaction, canEdit, canDelete, @@ -59,7 +57,7 @@ export function MessageDropdownMenu({ {canSendReaction && ( { - onReactionToggle(eventId, key, shortcode); + onReactionToggle(mEvent.getId() ?? '', key, shortcode); closeMenu(); }} /> @@ -84,7 +82,7 @@ export function MessageDropdownMenu({ size="300" after={} radii="300" - data-event-id={eventId} + data-event-id={mEvent.getId()} onClick={(evt) => { onReplyClick(evt); closeMenu(); @@ -99,9 +97,9 @@ export function MessageDropdownMenu({ size="300" after={} radii="300" - data-event-id={eventId} + data-event-id={mEvent.getId()} onClick={() => { - onEditId(eventId); + onEditId(mEvent.getId()); closeMenu(); }} > @@ -111,7 +109,7 @@ export function MessageDropdownMenu({ )} {!hideReadReceipts && ( - + )} @@ -255,7 +253,6 @@ export function MessageOptionsMenu({ room={room} mx={mx} relations={relations} - eventId={eventId} canSendReaction={canSendReaction} canEdit={canEdit} canDelete={canDelete}