diff --git a/src/api/layers/profile.layer.ts b/src/api/layers/profile.layer.ts
index b980c3d6f..db382d942 100644
--- a/src/api/layers/profile.layer.ts
+++ b/src/api/layers/profile.layer.ts
@@ -74,7 +74,7 @@ export class ProfileLayer extends HostLayer {
return await evaluateAndReturn(
this.page,
({ status }) => {
- WAPI.setMyStatus(status);
+ WPP.profile.setMyStatus(status);
},
{ status }
);
diff --git a/src/api/layers/retriever.layer.ts b/src/api/layers/retriever.layer.ts
index 487322a41..2804c627d 100644
--- a/src/api/layers/retriever.layer.ts
+++ b/src/api/layers/retriever.layer.ts
@@ -265,7 +265,7 @@ export class RetrieverLayer extends SenderLayer {
public async getStatus(contactId: string) {
return evaluateAndReturn(
this.page,
- (contactId) => WAPI.getStatus(contactId),
+ (contactId) => WPP.contact.getStatus(contactId),
contactId
);
}
diff --git a/src/lib/wapi/functions/get-status.js b/src/lib/wapi/functions/get-status.js
deleted file mode 100644
index 4efba0a72..000000000
--- a/src/lib/wapi/functions/get-status.js
+++ /dev/null
@@ -1,20 +0,0 @@
-/*
- * This file is part of WPPConnect.
- *
- * WPPConnect is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * WPPConnect is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with WPPConnect. If not, see .
- */
-
-export async function getStatus(id) {
- return await Store.MyStatus.getStatus(id);
-}
diff --git a/src/lib/wapi/functions/index.js b/src/lib/wapi/functions/index.js
index 0de2bdd9c..b2e142442 100644
--- a/src/lib/wapi/functions/index.js
+++ b/src/lib/wapi/functions/index.js
@@ -46,7 +46,6 @@ export { getMe } from './get-me';
export { getMyContacts } from './get-my-contacts';
export { getNewId } from './get-new-id';
export { getNumberProfile } from './get-number-profile';
-export { getStatus } from './get-status';
export { getUnreadMessages } from './get-unread-messages';
export { getUnreadMessagesInChat } from './get-unread-messages-in-chat';
export { hasUndreadMessages } from './has-unread-messages';
@@ -78,7 +77,6 @@ export { sendMessage2 } from './send-message2';
export { sendSticker } from './send-sticker';
export { sendVideoAsGif } from './send-video-as-gif';
export { setMyName } from './set-my-name';
-export { setMyStatus } from './set-my-status';
export { forwardMessages } from './forward-messages';
export { getMessageById } from './get-message-by-id';
export { getMessages } from './get-messages';
diff --git a/src/lib/wapi/functions/set-my-status.js b/src/lib/wapi/functions/set-my-status.js
deleted file mode 100644
index c614f042f..000000000
--- a/src/lib/wapi/functions/set-my-status.js
+++ /dev/null
@@ -1,20 +0,0 @@
-/*
- * This file is part of WPPConnect.
- *
- * WPPConnect is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * WPPConnect is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with WPPConnect. If not, see .
- */
-
-export function setMyStatus(status) {
- return Store.MyStatus.setMyStatus(status);
-}
diff --git a/src/lib/wapi/store/store-objects.js b/src/lib/wapi/store/store-objects.js
index 11162f434..25a6c4a7f 100644
--- a/src/lib/wapi/store/store-objects.js
+++ b/src/lib/wapi/store/store-objects.js
@@ -101,11 +101,6 @@ export const storeObjects = [
conditions: (module) =>
module.queryIdentity && module.updateIdentity ? module : null,
},
- {
- id: 'MyStatus',
- conditions: (module) =>
- module.getStatus && module.setMyStatus ? module : null,
- },
{
id: 'ChatStates',
conditions: (module) =>
diff --git a/src/lib/wapi/wapi.js b/src/lib/wapi/wapi.js
index 774927f53..05c1b00f7 100644
--- a/src/lib/wapi/wapi.js
+++ b/src/lib/wapi/wapi.js
@@ -49,7 +49,6 @@ import {
getMyContacts,
getNewId,
getNumberProfile,
- getStatus,
getUnreadMessages,
getUnreadMessagesInChat,
hasUndreadMessages,
@@ -78,7 +77,6 @@ import {
sendSticker,
sendVideoAsGif,
setMyName,
- setMyStatus,
openChat,
openChatAt,
getGroupInfoFromInviteLink,
@@ -215,7 +213,6 @@ if (typeof window.WAPI === 'undefined') {
window.WAPI.sendPtt = sendPtt;
window.WAPI.sendFile = sendFile;
window.WAPI.setMyName = setMyName;
- window.WAPI.setMyStatus = setMyStatus;
window.WAPI.sendVideoAsGif = sendVideoAsGif;
window.WAPI.processFiles = processFiles;
window.WAPI.sendImageWithProduct = sendImageWithProduct;
@@ -245,7 +242,6 @@ if (typeof window.WAPI === 'undefined') {
window.WAPI.getAllChatsWithMessages = getAllChatsWithMessages;
window.WAPI.getAllGroups = getAllGroups;
window.WAPI.getChat = getChat;
- window.WAPI.getStatus = getStatus;
window.WAPI.getChatByName = getChatByName;
window.WAPI.getNewId = getNewId;
window.WAPI.getChatById = getChatById;
diff --git a/src/types/WAPI.d.ts b/src/types/WAPI.d.ts
index 5da47505a..87470b829 100644
--- a/src/types/WAPI.d.ts
+++ b/src/types/WAPI.d.ts
@@ -76,7 +76,6 @@ interface WAPI {
getMessages: (chatId: string, params: GetMessagesParam) => Promise;
getNumberProfile: (contactId: string) => WhatsappProfile;
getSessionTokenBrowser: (removePath?: boolean) => SessionToken;
- getStatus: (contactId: string) => ContactStatus;
getTheme: () => string;
getUnreadMessages: (
includeMe: boolean,
@@ -205,7 +204,6 @@ interface WAPI {
setGroupSubject: (groupId: string, title: string) => Promise