commit 0d8262af36f802993d517c9fca89755c645fa9be
parent 7b3add5cbda2b83b44935f7854707aad3647035a
Author: n0tr1v <n0tr1v@protonmail.com>
Date: Thu, 19 Jan 2023 00:07:37 -0800
inline multiline message quote
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/pkg/web/handlers/api/v1/topBarHandler.go b/pkg/web/handlers/api/v1/topBarHandler.go
@@ -694,6 +694,7 @@ func getQuoteTxt(roomKey string, quoted database.ChatMessage) (out string) {
}
toBeQuoted := decrypted[startIdx:]
+ toBeQuoted = strings.ReplaceAll(toBeQuoted, "\n", ` `)
toBeQuoted = strings.ReplaceAll(toBeQuoted, `“`, `"`)
toBeQuoted = strings.ReplaceAll(toBeQuoted, `”`, `"`)