Set double puppet key in backfill events

This commit is contained in:
Tulir Asokan
2022-10-12 10:56:45 +03:00
parent 8ff99ce916
commit c9f8b83f62
+2
View File
@@ -2835,6 +2835,8 @@ class Portal(DBPortal, BasePortal):
event_type = converted.type
if self.encrypted and self.matrix.e2ee:
event_type, content = await self.matrix.e2ee.encrypt(self.mxid, event_type, content)
if intent.api.is_real_user:
content[DOUBLE_PUPPET_SOURCE_KEY] = self.bridge.name
return BatchSendEvent(
sender=intent.mxid,
timestamp=int(msg.date.timestamp() * 1000),