From ac3b862f23aadf8a44004ab93610ccca9e9d6e1a Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Sun, 16 Jun 2019 01:33:51 +0300 Subject: [PATCH] Trim reply fallback when fetching single events --- maubot/matrix.py | 1 + 1 file changed, 1 insertion(+) diff --git a/maubot/matrix.py b/maubot/matrix.py index 914c58f..d75e522 100644 --- a/maubot/matrix.py +++ b/maubot/matrix.py @@ -90,6 +90,7 @@ class MaubotMatrixClient(MatrixClient): async def get_event(self, room_id: RoomID, event_id: EventID) -> Event: event = await super().get_event(room_id, event_id) if isinstance(event, MessageEvent): + event.content.trim_reply_fallback() return MaubotMessageEvent(event, self) else: event.client = self