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
1 changed files with 3 additions and 1 deletions

View File

@ -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)