Type alias ChatModification

ChatModification: {
    archive: boolean;
    lastMessages: LastMessageList;
} | {
    pushNameSetting: string;
} | {
    pin: boolean;
} | {
    mute: number | null;
} | {
    clear: "all" | {
        messages: {
            fromMe?: boolean;
            id: string;
            timestamp: number;
        }[];
    };
} | {
    star: {
        messages: {
            fromMe?: boolean;
            id: string;
        }[];
        star: boolean;
    };
} | {
    lastMessages: LastMessageList;
    markRead: boolean;
} | {
    delete: true;
    lastMessages: LastMessageList;
} | {
    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: "all" | {
        messages: {
            fromMe?: boolean;
            id: string;
            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

  • addChatLabel: ChatLabelAssociationActionBody

Type declaration

  • removeChatLabel: ChatLabelAssociationActionBody

Type declaration

  • addMessageLabel: MessageLabelAssociationActionBody

Type declaration

  • removeMessageLabel: MessageLabelAssociationActionBody

Generated using TypeDoc