vue-wiguet-chatweb 0.1.6 → 0.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-wiguet-chatweb",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist",
@@ -187,9 +187,10 @@ const submitMessage = async (event: Event) => {
187
187
  } else {
188
188
  messagesData.value.data[idx] = newMsg;
189
189
 
190
+ const message = {...newMsg, chaId:newMessage.chatId }
190
191
  socketService.value.emit(
191
192
  'sendMessage',
192
- { roomId: information?.value?.appChat.id, message: { ...newMsg, ...newMessage} },
193
+ { roomId: information?.value?.appChat.id, message },
193
194
  (response: any) => {
194
195
  console.log('🚀 ~ socketService.value.emit ~ response:', response);
195
196
  }