Browse Source

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

pull/1266/head
Meisam 4 years ago committed by GitHub
parent
commit
f07c9e2e00
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      core/chat/events/events.go

2
core/chat/events/events.go

@ -73,7 +73,7 @@ func (m *MessageEvent) RenderAndSanitizeMessageBody() { @@ -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.

Loading…
Cancel
Save