liming 1 Minggu lalu
induk
melakukan
40250668df
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      src/stores/modules/webSocketStore.js

+ 1 - 1
src/stores/modules/webSocketStore.js

@@ -231,7 +231,7 @@ export const useWebSocketStore = defineStore("webSocketStore", {
         fromUsername: walletStore.username,
         from: walletStore.account,
       };
-      if([1,2].includes(message.messageType)){
+      if([1,2].includes(data.messageType)){
         this.messages.push({
           ...data,
           toUsername: data.friendUsername