From f07c9e2e00284a4af3df19d4fece27143d59a91c Mon Sep 17 00:00:00 2001 From: Meisam <39205857+MFTabriz@users.noreply.github.com> Date: Mon, 26 Jul 2021 18:21:48 +0200 Subject: [PATCH] consider

as an empty message (#1264) --- core/chat/events/events.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/chat/events/events.go b/core/chat/events/events.go index 8c2e4ae83..44d84d575 100644 --- a/core/chat/events/events.go +++ b/core/chat/events/events.go @@ -73,7 +73,7 @@ func (m *MessageEvent) RenderAndSanitizeMessageBody() { // Empty will return if this message's contents is empty. func (m *MessageEvent) Empty() bool { - return m.Body == "" + return m.Body == "" || m.Body == "

" } // RenderBody will render markdown to html without any sanitization.