feat: add label feature (#955)

Co-authored-by: 刘建辉 <liujianhui@gongchang.com>
This commit is contained in:
建辉
2024-09-22 19:48:17 +08:00
committed by GitHub
parent 9e4e211751
commit 6ff945502d
4 changed files with 43 additions and 0 deletions

View File

@@ -1,6 +1,7 @@
import type { proto } from '../../WAProto'
import type { AccountSettings } from './Auth'
import type { BufferedEventData } from './Events'
import type { LabelActionBody } from './Label'
import type { ChatLabelAssociationActionBody } from './LabelAssociation'
import type { MessageLabelAssociationActionBody } from './LabelAssociation'
import type { MinimalMessage } from './Message'
@@ -90,6 +91,8 @@ export type ChatModification =
lastMessages: LastMessageList
}
| { delete: true, lastMessages: LastMessageList }
// Label
| { addLabel: LabelActionBody }
// Label assosiation
| { addChatLabel: ChatLabelAssociationActionBody }
| { removeChatLabel: ChatLabelAssociationActionBody }