[core] NOWEB subscribe presence

This commit is contained in:
devlikepro committed 2025-01-10 11:00:55 +07:00
1 parent f70d5203a3
commit 17303039b8
2 files changed
+6 -1

No files matched your search

+1 -1
View File
@@ -651,7 +651,7 @@ export abstract class WhatsappSession {
throw new NotImplementedByEngineError();
}
public subscribePresence(id: string): Promise<void> {
public subscribePresence(id: string): Promise<any> {
throw new NotImplementedByEngineError();
}
@@ -1243,6 +1243,11 @@ export class WhatsappSessionNoWebCore extends WhatsappSession {
return this.toWahaPresences(remoteJid, result);
}
public subscribePresence(id: string): Promise<void> {
const jid = toJID(id);
return this.sock.presenceSubscribe(jid);
}
/**
* Status methods
*/