Type alias ChatModification

ChatModification: {
    archive: boolean;
    lastMessages: LastMessageList;
} | {
    pushNameSetting: string;
} | {
    pin: boolean;
} | {
    mute: number | null;
} | {
    clear: boolean;
} | {
    deleteForMe: {
        deleteMedia: boolean;
        key: WAMessageKey;
        timestamp: number;
    };
} | {
    star: {
        messages: {
            fromMe?: boolean;
            id: string;
        }[];
        star: boolean;
    };
} | {
    lastMessages: LastMessageList;
    markRead: boolean;
} | {
    delete: true;
    lastMessages: LastMessageList;
} | {
    addLabel: LabelActionBody;
} | {
    addChatLabel: ChatLabelAssociationActionBody;
} | {
    removeChatLabel: ChatLabelAssociationActionBody;
} | {
    addMessageLabel: MessageLabelAssociationActionBody;
} | {
    removeMessageLabel: MessageLabelAssociationActionBody;
}

Type declaration

Type declaration

  • pushNameSetting: string

Type declaration

  • pin: boolean

Type declaration

  • mute: number | null

    mute for duration, or provide timestamp of mute to remove

Type declaration

  • clear: boolean

Type declaration

  • deleteForMe: {
        deleteMedia: boolean;
        key: WAMessageKey;
        timestamp: number;
    }

Type declaration

  • star: {
        messages: {
            fromMe?: boolean;
            id: string;
        }[];
        star: boolean;
    }
    • messages: {
          fromMe?: boolean;
          id: string;
      }[]
    • star: boolean

Type declaration

Type declaration

Type declaration

  • addLabel: LabelActionBody

Type declaration

  • addChatLabel: ChatLabelAssociationActionBody

Type declaration

  • removeChatLabel: ChatLabelAssociationActionBody

Type declaration

  • addMessageLabel: MessageLabelAssociationActionBody

Type declaration

  • removeMessageLabel: MessageLabelAssociationActionBody

Generated using TypeDoc