mirror of
https://github.com/tulir/gomuks.git
synced 2025-04-19 18:13:41 -05:00
redactRecentMessages callback does not need to be async
This commit is contained in:
parent
9814c3a525
commit
fddd22a3b4
1 changed files with 1 additions and 1 deletions
|
@ -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++) {
|
||||
|
|
Loading…
Add table
Reference in a new issue