소스 검색

未读数量显示bug

xsx 1 년 전
부모
커밋
b35366b371
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  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;
 			}