diff --git a/assets/js/components/conversations/service.js b/assets/js/components/conversations/service.js index 5ce912c2..9e663f8e 100644 --- a/assets/js/components/conversations/service.js +++ b/assets/js/components/conversations/service.js @@ -139,6 +139,6 @@ ComunicWeb.common.cacheManager.registerCacheCleaner("ComunicWeb.components.conve document.addEventListener("newConvMessage", (e) => { const msg = e.detail; - if(ConvService.__serviceCache.hasOwnProperty("conversation-" + msg.convID)) - ComunicWeb.components.conversations.chatWindows.addMessage(msg.convID, msg); + if(ConvService.__serviceCache.hasOwnProperty("conversation-" + msg.conv_id)) + ConvChatWindow.addMessage(msg.conv_id, msg); }) \ No newline at end of file