vue-wiguet-chatweb 0.1.5 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-wiguet-chatweb",
3
- "version": "0.1.5",
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: newMessage },
193
+ { roomId: information?.value?.appChat.id, message },
193
194
  (response: any) => {
194
195
  console.log('🚀 ~ socketService.value.emit ~ response:', response);
195
196
  }