Skip to content

Commit

Permalink
✨ feat: joinWebBeta #3113
Browse files Browse the repository at this point in the history
  • Loading branch information
smashah committed May 2, 2023
1 parent b3b56b1 commit 77b722a
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/api/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -3801,6 +3802,18 @@ public async getStatus(contactId: ContactId) : Promise<{
) as Promise<boolean>;
}

/**
* 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<boolean> {
return await this.pup(
(join) => WAPI.joinWebBeta(join),
join
) as Promise<boolean>;
}

/**
*
* Start dark mode [NOW GENERALLY AVAILABLE]
Expand Down

0 comments on commit 77b722a

Please sign in to comment.