Merge pull request #279 from edgardmessias/feat_clear_chat

Added method to clear chat and star/unstar message
This commit is contained in:
Adhiraj Singh
2020-12-18 17:40:50 +05:30
committed by GitHub
3 changed files with 130 additions and 8 deletions

View File

@@ -219,6 +219,7 @@ export interface WAChat {
/** number of unread messages, is < 0 if the chat is manually marked unread */
count: number
archive?: 'true' | 'false'
clear?: 'true' | 'false'
read_only?: 'true' | 'false'
mute?: string
pin?: string
@@ -321,7 +322,8 @@ export enum ChatModification {
unpin='unpin',
mute='mute',
unmute='unmute',
delete='delete'
delete='delete',
clear='clear'
}
export const HKDFInfoKeys = {
[MessageType.image]: 'WhatsApp Image Keys',