redactRecentMessages callback does not need to be async

This commit is contained in:
nexy7574 2025-04-09 03:34:50 +01:00 committed by GitHub
parent 9814c3a525
commit fddd22a3b4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -92,7 +92,7 @@ const UserModeration = ({ userID, client, member, room }: UserModerationProps) =
if (!room) { if (!room) {
throw new Error("redactRecentMessages called without room") throw new Error("redactRecentMessages called without room")
} }
const callback = async (reason: string) => { const callback = (reason: string) => {
const tasks = [] const tasks = []
for (const evt of calculateRedactions()) { for (const evt of calculateRedactions()) {
// for(let i=0;i<3;i++) { // for(let i=0;i<3;i++) {