Browse Source

未读数量显示bug

xsx 1 year ago
parent
commit
b35366b371
1 changed files with 3 additions and 1 deletions
  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;
 			}