vue-wiguet-chatweb 0.1.3 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/style.css +1 -1
- package/dist/vue-wiguet-chatweb.js +914 -913
- package/dist/vue-wiguet-chatweb.umd.cjs +3 -3
- package/package.json +1 -1
- package/src/components/Chat.vue +2 -1
package/package.json
CHANGED
package/src/components/Chat.vue
CHANGED
@@ -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:
|
192
|
+
{ roomId: information?.value?.appChat.id, message: newMessage },
|
192
193
|
(response: any) => {
|
193
194
|
console.log('🚀 ~ socketService.value.emit ~ response:', response);
|
194
195
|
}
|