Fix codeblocks in chat (#676)
* allowed codeblocks in chat (owncast#675) * dont send empty chat messages back to frontend (owncast#675)
This commit is contained in:
@@ -117,11 +117,13 @@ func (s *server) Listen() {
|
||||
// and standardize this message into something safe we can send everyone else.
|
||||
msg.RenderAndSanitizeMessageBody()
|
||||
|
||||
s.listener.MessageSent(msg)
|
||||
s.sendAll(msg)
|
||||
if !msg.Empty() {
|
||||
s.listener.MessageSent(msg)
|
||||
s.sendAll(msg)
|
||||
|
||||
// Store in the message history
|
||||
addMessage(msg)
|
||||
// Store in the message history
|
||||
addMessage(msg)
|
||||
}
|
||||
case ping := <-s.pingCh:
|
||||
fmt.Println("PING?", ping)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user