docs(examples): fix chat example (#3787)

This commit is contained in:
Adán Toscano
2021-03-18 14:06:13 +01:00
committed by GitHub
parent 1a72ae4fe2
commit 64be1c9985

View File

@@ -72,7 +72,7 @@ $(function() {
}
// Adds the visual chat message to the message list
const addChatMessage = (data, options) => {
const addChatMessage = (data, options = {}) => {
// Don't fade the message in if there is an 'X was typing'
const $typingMessages = getTypingMessages(data);
if ($typingMessages.length !== 0) {