Update participants in DMs again

Needed to kick own puppet when double-puppeting is re-enabled
This commit is contained in:
Andrew Ferrazzutti 2021-07-03 12:43:34 -04:00
parent 120e4e11f7
commit 0672d41431

View File

@ -629,11 +629,13 @@ class Portal(DBPortal, BasePortal):
await self._cleanup_noid_msgs() 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: if not self.is_direct:
# Update participants before sending any receipts # Update participants before sending any receipts
# TODO Joins and leaves are (usually) shown after all, so track them properly. # TODO Joins and leaves are (usually) shown after all, so track them properly.
# In the meantime, just check the participants list after backfilling. # In the meantime, just check the participants list after backfilling.
await self._update_participants(info.participants)
for evt in messages: for evt in messages:
if evt.is_outgoing and evt.receipt_count: if evt.is_outgoing and evt.receipt_count:
await self.handle_remote_message(source, evt, handle_receipt=False) await self.handle_remote_message(source, evt, handle_receipt=False)