From 0672d41431e2deb16315c6652383d1f5b0dbf893 Mon Sep 17 00:00:00 2001 From: Andrew Ferrazzutti Date: Sat, 3 Jul 2021 12:43:34 -0400 Subject: [PATCH] Update participants in DMs again Needed to kick own puppet when double-puppeting is re-enabled --- matrix_puppeteer_line/portal.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/matrix_puppeteer_line/portal.py b/matrix_puppeteer_line/portal.py index 3ad5093..93e013b 100644 --- a/matrix_puppeteer_line/portal.py +++ b/matrix_puppeteer_line/portal.py @@ -629,11 +629,13 @@ class Portal(DBPortal, BasePortal): await self._cleanup_noid_msgs() + # Need to update participants even for DMs, to kick own puppet if needed + await self._update_participants(info.participants) + if not self.is_direct: # Update participants before sending any receipts # TODO Joins and leaves are (usually) shown after all, so track them properly. # In the meantime, just check the participants list after backfilling. - await self._update_participants(info.participants) for evt in messages: if evt.is_outgoing and evt.receipt_count: await self.handle_remote_message(source, evt, handle_receipt=False)