diff --git a/src/api/Client.ts b/src/api/Client.ts index 0502c7889f..78679df67c 100644 --- a/src/api/Client.ts +++ b/src/api/Client.ts @@ -72,6 +72,7 @@ declare module WAPI { const onGlobalParticipantsChanged: (callback: Function) => any; const onStory: (callback: Function) => any; const setChatBackgroundColourHex: (hex: string) => boolean; + const joinWebBeta: (join: boolean) => boolean; const darkMode: (activate: boolean) => boolean; const autoReject: (message: string) => boolean; const emitUnreadMessages: () => boolean; @@ -3801,6 +3802,18 @@ public async getStatus(contactId: ContactId) : Promise<{ ) as Promise; } + /** + * Join or leave the wa web beta program. Will return true of operation was successful. + * + * @param {boolean} join true to join the beta, false to leave + */ + public async joinWebBeta(join: boolean) : Promise { + return await this.pup( + (join) => WAPI.joinWebBeta(join), + join + ) as Promise; + } + /** * * Start dark mode [NOW GENERALLY AVAILABLE]