Skip to content

Commit

Permalink
fix: Removed unused modules (#1422)
Browse files Browse the repository at this point in the history
  • Loading branch information
edgardmessias committed Nov 18, 2022
1 parent b0878c7 commit 965be01
Show file tree
Hide file tree
Showing 13 changed files with 10 additions and 631 deletions.
5 changes: 1 addition & 4 deletions src/controllers/auth.ts
Expand Up @@ -37,10 +37,7 @@ export const getInterfaceStatus = async (
return 'UNPAIRED';
}

const streamStatus =
window['Store'] &&
window['Store'].Stream &&
window['Store'].Stream.displayInfo;
const streamStatus = WPP?.whatsapp?.Stream?.displayInfo;
if (['PAIRING', 'RESUMING', 'SYNCING'].includes(streamStatus)) {
return 'PAIRING';
}
Expand Down
355 changes: 0 additions & 355 deletions src/lib/wapi/business/send-message-with-buttons.js

This file was deleted.

4 changes: 0 additions & 4 deletions src/lib/wapi/functions/index.js
Expand Up @@ -61,23 +61,19 @@ export { sendChatstate } from './send-chat-state';
export { sendFile } from './send-file';
export { sendImage } from './send-image';
export { sendPtt } from './send-ptt';
export { sendImageAsSticker } from './send-image-as-stricker';
export { sendImageWithProduct } from './send-image-with-product';
export { sendLocation } from './send-location';
export { sendMessage } from './send-message';
export { sendMessageOptions } from './sendMessageOptions';
export { sendMessageWithTags } from './send-message-with-tags';
export { sendMessageWithThumb } from './send-message-with-thumb';
export { sendMessage2 } from './send-message2';
export { sendSticker } from './send-sticker';
export { sendVideoAsGif } from './send-video-as-gif';
export { setMyName } from './set-my-name';
export { forwardMessages } from './forward-messages';
export { getMessageById } from './get-message-by-id';
export { getMessages } from './get-messages';
export { setTheme, getTheme } from './theme';
export { restartService } from './restart-service';
export { killServiceWorker } from './kill-service-worker';
export { sendLinkPreview } from './send-link-preview';
export { sendExist, scope, getchatId } from './check-send-exist';
export { setProfilePic } from './set-profile-pic';
Expand Down

0 comments on commit 965be01

Please sign in to comment.