gemercheung hace 3 años
padre
commit
b02066f759
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/service/msgService.js

+ 1 - 1
src/service/msgService.js

@@ -11,7 +11,7 @@ const createMessage = (roomId, user, msg) => {
   const msgObj = {
     userId: user.userId,
     nickname: user.nickname,
-    roomId: roomId,
+    roomId: user.roomId,
     msg: msg,
     createTime: Math.floor(Date.now() / 1000),
   };