Added method to clear chat and star/unstar message

This commit is contained in:
Edgard
2020-12-14 23:01:14 -03:00
committed by Edgard Messias
parent 282fdb1bd3
commit 5a7077c675
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',