diff --git a/src/views/Conversations/Online/Input/InputComposer.jsx b/src/views/Conversations/Online/Input/InputComposer.jsx index 28c111d..2521987 100644 --- a/src/views/Conversations/Online/Input/InputComposer.jsx +++ b/src/views/Conversations/Online/Input/InputComposer.jsx @@ -108,7 +108,7 @@ const InputComposer = ({ channel, currentActive }) => { // olog('sendMessage------------------', msgObjMerge) const contentToSend = sentMsgTypeMapped[msgObjMerge.type].contentToSend(msgObjMerge); // console.log('content to send-------------------------------------', contentToSend); - websocket.sendMessage({ ...contentToSend, opi_sn: userId, coli_sn: currentConversation.coli_sn, conversationid: currentConversation.sn, }); + websocket.sendMessage({ ...contentToSend, opi_sn: userId, coli_sn: currentConversation.coli_sn || '', conversationid: currentConversation.sn, }); const contentToRender = sentMsgTypeMapped[msgObjMerge.type].contentToRender(msgObjMerge); // console.log(contentToRender, 'contentToRender sendMessage------------------'); sentOrReceivedNewMessage(contentToRender.conversationid, contentToRender); @@ -160,7 +160,7 @@ const InputComposer = ({ channel, currentActive }) => { }; const contentToSend = sentMsgTypeMapped[msgObjMerge.type].contentToSend(msgObjMerge); // olog('invoke upload send +++ ', contentToSend) - websocket.sendMessage({ ...contentToSend, opi_sn: userId, coli_sn: currentConversation.coli_sn, conversationid: currentConversation.sn, }); + websocket.sendMessage({ ...contentToSend, opi_sn: userId, coli_sn: currentConversation.coli_sn || '', conversationid: currentConversation.sn, }); }; const [pastedUploading, setPastedUploading] = useState(false);