nicer patch API

This commit is contained in:
Adhiraj Singh
2021-09-28 19:33:21 +05:30
parent fdfe310fdf
commit 1a83a4c6d4
3 changed files with 17 additions and 18 deletions

View File

@@ -12,6 +12,13 @@ export interface PresenceData {
export type ChatMutation = { action: proto.ISyncActionValue, index: [string, string], indexMac: Uint8Array, valueMac: Uint8Array, operation: number }
export type WAPatchCreate = {
syncAction: proto.ISyncActionValue
index: [string, string]
type: WAPatchName
apiVersion: number
}
export type Chat = Omit<proto.IConversation, 'messages'> & {
/** unix timestamp of date when mute ends, if applicable */
mute?: number | null