Send delivery receipts for double-puppeted messages

This commit is contained in:
Andrew Ferrazzutti 2021-06-10 02:19:12 -04:00
parent 1fffbc625c
commit d8b209b04f

View File

@ -132,6 +132,7 @@ class Portal(DBPortal, BasePortal):
elif ((message.get(self.bridge.real_user_content_key, elif ((message.get(self.bridge.real_user_content_key,
False) and await p.Puppet.get_by_custom_mxid(sender.mxid))): False) and await p.Puppet.get_by_custom_mxid(sender.mxid))):
self.log.debug(f"Ignoring puppet-sent message by confirmed puppet user {sender.mxid}") self.log.debug(f"Ignoring puppet-sent message by confirmed puppet user {sender.mxid}")
await self._send_delivery_receipt(event_id)
return return
# TODO deduplication of outgoing messages # TODO deduplication of outgoing messages
text = message.body text = message.body