MessageInfo

This commit is contained in:
Adhiraj
2020-07-12 19:01:14 +05:30
parent 40df8f5d00
commit dc7ed2c0c0
2 changed files with 19 additions and 1 deletions

View File

@@ -58,6 +58,7 @@ export const HKDFInfoKeys = {
}
export enum Mimetype {
jpeg = 'image/jpeg',
png = 'image/png',
mp4 = 'video/mp4',
gif = 'video/gif',
pdf = 'appliction/pdf',
@@ -74,6 +75,10 @@ export interface MessageOptions {
validateID?: boolean,
filename?: string
}
export interface MessageInfo {
reads: {jid: string, t: string}[]
deliveries: {jid: string, t: string}[]
}
export interface MessageStatusUpdate {
from: string
to: string