[core] NOWEB subscribe presence
This commit is contained in:
1 parent
f70d5203a3
commit
17303039b8
2 files changed
+6
-1
No files matched your search
@@ -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
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user