Skip to content

Commit

Permalink
鈿帮笍 removed dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
smashah committed Aug 31, 2021
1 parent acdbe3c commit e687705
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/api/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3042,11 +3042,9 @@ public async getStatus(contactId: ContactId) : Promise<{
}
}
if(a?.stickerMetadata && typeof a?.stickerMetadata !== "object") throw new CustomError(ERROR_NAME.BAD_STICKER_METADATA, `Received ${typeof a?.stickerMetadata}: ${a?.stickerMetadata}`);
// remvebg no longer limited to GCP
// if((a?.stickerMetadata as StickerMetadata)?.removebg) fallback = true;
}
if(a?.stickerMetadata?.discord && this._createConfig?.discord) {
if(this?._createConfig?.discord) a.stickerMetadata = {discord: this._createConfig.discord}
a.stickerMetadata = {discord: this._createConfig.discord}
}
try {
const {data} = await axios.post(`${((fallback ? pkg.stickerUrl : 'https://open-wa-sticker-api.herokuapp.com')|| this._createConfig.stickerServerEndpoint).replace(/\/$/, '')}/${func}`, {
Expand Down

0 comments on commit e687705

Please sign in to comment.