Commit a4062700 by 杨铁龙

消息列表不过滤notify消息类型

parent 3c4a6c12
Showing with 3 additions and 1 deletions
...@@ -93,6 +93,8 @@ function buildChatItem(chat: RawChatItem) { ...@@ -93,6 +93,8 @@ function buildChatItem(chat: RawChatItem) {
const chatType = "group"; const chatType = "group";
const allowedChatTypes = [chatType, "notify"]
const filterActiveChats = (items: RawChatItem[]) => { const filterActiveChats = (items: RawChatItem[]) => {
return items.filter( return items.filter(
(i) => (i) =>
...@@ -100,7 +102,7 @@ const filterActiveChats = (items: RawChatItem[]) => { ...@@ -100,7 +102,7 @@ const filterActiveChats = (items: RawChatItem[]) => {
!i.is_exited && !i.is_exited &&
!i.is_remove && !i.is_remove &&
!i.is_deleted && !i.is_deleted &&
i.type === chatType allowedChatTypes.includes(i.type)
); );
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment