forked from uniborg/uniborg
fix not waiting after rename
This commit is contained in:
parent
7c90f97a97
commit
3ea3808ac2
|
@ -59,6 +59,7 @@ async def on_name(event):
|
|||
func=lambda e: e.deleted_id == event.message.id
|
||||
)))
|
||||
if await wait_for_delete(deleted_fut, MULTI_EDIT_TIMEOUT):
|
||||
await asyncio.sleep(MULTI_EDIT_TIMEOUT)
|
||||
return
|
||||
if await wait_for_delete(deleted_fut, REVERT_TIMEOUT) or lock.locked():
|
||||
return
|
||||
|
|
Loading…
Reference in New Issue