Commit 9e8994e3 by 杨铁龙

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

parent 35d3a47f
Showing with 3 additions and 1 deletions
......@@ -100,6 +100,8 @@ function buildChatItem(chat: RawChatItem) {
const chatType = "group";
const allowedChatTypes = [chatType, "notify"]
export const filterActiveChats = (items: RawChatItem[]) => {
return items.filter(
(i) =>
......@@ -107,7 +109,7 @@ export const filterActiveChats = (items: RawChatItem[]) => {
!i.is_exited &&
!i.is_remove &&
!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