mirror of
https://github.com/maubot/maubot.git
synced 2024-10-01 01:06:10 -04:00
Trim reply fallback when fetching single events
This commit is contained in:
parent
8b5eb1849b
commit
ac3b862f23
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user