Fix mistake in mark_disappearing
This commit is contained in:
@@ -2978,9 +2978,7 @@ class Portal(DBPortal, BasePortal):
|
|||||||
async def _mark_disappearing(
|
async def _mark_disappearing(
|
||||||
self, event_id: EventID, seconds: int, expires_at: int | None
|
self, event_id: EventID, seconds: int, expires_at: int | None
|
||||||
) -> None:
|
) -> None:
|
||||||
dm = DisappearingMessage(
|
dm = DisappearingMessage(self.mxid, event_id, seconds, expiration_ts=expires_at * 1000)
|
||||||
self.mxid, event_id, seconds * 1000, expiration_ts=expires_at * 1000
|
|
||||||
)
|
|
||||||
await dm.insert()
|
await dm.insert()
|
||||||
if expires_at:
|
if expires_at:
|
||||||
asyncio.create_task(self._disappear_event(dm))
|
asyncio.create_task(self._disappear_event(dm))
|
||||||
|
|||||||
Reference in New Issue
Block a user