Merge branch '7w1:dev' into feat/in-app-notification-banner-and-account-unread
This commit is contained in:
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();
|
||||
|
||||
Reference in new issue
Block a user