diff --git a/mautrix_facebook/portal.py b/mautrix_facebook/portal.py index 851b395629efec3db8ea1f86ebd2cc8ff95687b9..5a4673a8677f7be0d6cddb59c6f7de5571c8613a 100644 --- a/mautrix_facebook/portal.py +++ b/mautrix_facebook/portal.py @@ -582,6 +582,8 @@ class Portal(BasePortal): async def _send_message(self, intent: IntentAPI, content: MessageEventContent, event_type: EventType = EventType.ROOM_MESSAGE, **kwargs) -> EventID: if self.encrypted and self.matrix.e2ee: + if intent.api.is_real_user: + content[intent.api.real_user_content_key] = True event_type, content = await self.matrix.e2ee.encrypt(self.mxid, event_type, content) return await intent.send_message_event(self.mxid, event_type, content, **kwargs)