Skip to content

Take control over your live stream video by running it yourself. Streaming + chat out of the box.

consider <p></p> as an empty message (#1264)

Meisam5923a5b4ede5
diff --git a/core/chat/events/events.go b/core/chat/events/events.go
index 8c2e4ae83b..44d84d5751 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 == "<p></p>"
}
// RenderBody will render markdown to html without any sanitization.