vue-wiguet-chatweb 0.1.3 → 0.1.5

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.3",
3
+ "version": "0.1.5",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist",
@@ -154,6 +154,7 @@ const submitMessage = async (event: Event) => {
154
154
 
155
155
  const newMessage = {
156
156
  id: uuidv4(),
157
+ chatId: information.value?.chat?.id,
157
158
  message: message.value,
158
159
  visto: true,
159
160
  multimedia: false,
@@ -188,7 +189,7 @@ const submitMessage = async (event: Event) => {
188
189
 
189
190
  socketService.value.emit(
190
191
  'sendMessage',
191
- { roomId: information?.value?.appChat.id, message: newMsg },
192
+ { roomId: information?.value?.appChat.id, message: newMessage },
192
193
  (response: any) => {
193
194
  console.log('🚀 ~ socketService.value.emit ~ response:', response);
194
195
  }