From 8a0f888a2168a179ec7ac52655d0ec1682a87dcd Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Fri, 23 Jun 2023 12:16:26 +0300 Subject: [PATCH] Add extra check for trimming plaintext reply fallback This should avoid most edge cases with messages starting with blockquotes when reply fallbacks are removed. --- event/reply.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/event/reply.go b/event/reply.go index e1844a4a..74bad2b3 100644 --- a/event/reply.go +++ b/event/reply.go @@ -23,7 +23,7 @@ func TrimReplyFallbackHTML(html string) string { } func TrimReplyFallbackText(text string) string { - if !strings.HasPrefix(text, "> ") || !strings.Contains(text, "\n") { + if !strings.HasPrefix(text, "> <") || !strings.Contains(text, "\n") { return text }