From fddd22a3b4e20b44a444147aa665a9030061dca4 Mon Sep 17 00:00:00 2001 From: nexy7574 Date: Wed, 9 Apr 2025 03:34:50 +0100 Subject: [PATCH] redactRecentMessages callback does not need to be async --- web/src/ui/rightpanel/UserModeration.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/ui/rightpanel/UserModeration.tsx b/web/src/ui/rightpanel/UserModeration.tsx index 147c04c..7b8229b 100644 --- a/web/src/ui/rightpanel/UserModeration.tsx +++ b/web/src/ui/rightpanel/UserModeration.tsx @@ -92,7 +92,7 @@ const UserModeration = ({ userID, client, member, room }: UserModerationProps) = if (!room) { throw new Error("redactRecentMessages called without room") } - const callback = async (reason: string) => { + const callback = (reason: string) => { const tasks = [] for (const evt of calculateRedactions()) { // for(let i=0;i<3;i++) {