Skip to content

Commit 0634700

Browse files
committed
Handle m.emote fallbacks in reply fallback trimming safety
1 parent 2f9654c commit 0634700

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

mautrix/types/event/message.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -350,7 +350,9 @@ def trim_reply_fallback(self) -> None:
350350
setattr(self, "__reply_fallback_trimmed", True)
351351

352352
def _trim_reply_fallback_text(self) -> None:
353-
if not self.body.startswith("> <") or "\n" not in self.body:
353+
if (
354+
not self.body.startswith("> <") and not self.body.startswith("> * <")
355+
) or "\n" not in self.body:
354356
return
355357
lines = self.body.split("\n")
356358
while len(lines) > 0 and lines[0].startswith("> "):

0 commit comments

Comments
 (0)