refactor!: use proto.Conversation's own chat mutation fields instead of baileys added

This commit is contained in:
Adhiraj Singh
2022-09-29 11:06:09 +05:30
parent bb983cd30d
commit e08dd10198
4 changed files with 7 additions and 13 deletions

View File

@@ -33,13 +33,7 @@ export type WAPatchCreate = {
operation: proto.SyncdMutation.SyncdOperation
}
export type Chat = proto.IConversation & {
/** unix timestamp of date when mute ends, if applicable */
mute?: number | null
/** timestamp of when pinned */
pin?: number | null
archive?: boolean
}
export type Chat = proto.IConversation
/**
* the last messages in a chat, sorted reverse-chronologically. That is, the latest message should be first in the chat