Unplanned
Last Updated: 29 Mar 2024 12:58 by ADMIN
Aline
Created on: 29 Mar 2024 12:57
Category: Chat
Type: Bug Report
0
chat SendMessage called twice

https://dojo.telerik.com/uJIwiyih

With version 2024.1.319, the sendMessage of chat is called twice whereas the bug doesn't exist in version 2022.3.913.

Is there a solution?

1 comment
ADMIN
Peter Milchev
Posted on: 29 Mar 2024 12:58

Hi,

A temporary workaround you can use is to unbind the sendMessage handler from the messageBox of the chat as demonstrated in the example below:

  • https://dojo.telerik.com/@pmilchev/IjUtoQiG 
  •   function sendMessageHandler(e) {
                    console.log("Message sent: " + e.text);
                }
                var chat = $("#chat").kendoChat({
                    sendMessage: sendMessageHandler
                }).getKendoChat();
            
                chat.messageBox.unbind("sendMessage", sendMessageHandler);

Regards,
Peter Milchev
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages! Or perhaps, if you are new to our Kendo family, check out our getting started resources