mirror of
https://github.com/pierre42100/ComunicWeb
synced 2024-11-22 20:19:21 +00:00
Handle new messages
This commit is contained in:
parent
3d503e1560
commit
4f85e42295
@ -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);
|
||||
})
|
Loading…
Reference in New Issue
Block a user