Merge branch '7w1:dev' into feat/in-app-notification-banner-and-account-unread

This commit is contained in:
Evie Gauthier authored and GitHub committed 2026-03-05 13:16:55 -05:00
commit 4ebcdee685
12 files changed
+401 -31

No files matched your search

@@ -1,4 +1,4 @@
import { FormEventHandler, MouseEvent, useCallback } from 'react';
import { FormEventHandler, MouseEvent, useCallback, useEffect } from 'react';
import { Room, MatrixEvent } from '$types/matrix-sdk';
import { useSetAtom } from 'jotai';
import {
@@ -65,6 +65,12 @@ export function MessageDeleteInternal({ room, mEvent, onClose }: MessageDeleteIn
)
);
useEffect(() => {
if (deleteState.status === AsyncStatus.Success) {
onClose();
}
}, [deleteState.status, onClose]);
const handleSubmit: FormEventHandler<HTMLFormElement> = (evt) => {
evt.preventDefault();
const eventId = mEvent.getId();