This commit is contained in:
retoor 2025-06-25 18:22:16 +02:00
parent 52ddce5625
commit f2b35c108c

View File

@ -269,7 +269,15 @@ class RPCView(BaseView):
async def _finalize_message_task(self,message_uid):
await asyncio.sleep(7)
try:
for _ in range(7):
await asyncio.sleep(1)
if not self._finalize_task:
return
except asyncio.exceptions.CancelledError:
print("Finalization cancelled.")
return
self._finalize_task = None
message = await self.services.channel_message.get(message_uid, is_final=False)
if not message: