Explorar el Código

未读数量显示bug

xsx hace 1 año
padre
commit
b35366b371
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      im-web/src/view/Home.vue

+ 3 - 1
im-web/src/view/Home.vue

@@ -336,7 +336,9 @@
 				let unreadCount = 0;
 				let chats = this.$store.state.chatStore.chats;
 				chats.forEach((chat) => {
-					unreadCount += chat.unreadCount
+					if(!chat.delete){
+						unreadCount += chat.unreadCount
+					}
 				});
 				return unreadCount;
 			}