This commit is contained in:
Adhiraj
2020-08-23 20:19:58 +05:30
parent d7e3312b1d
commit ef9d3661ca
2 changed files with 2 additions and 2 deletions

View File

@@ -41,7 +41,7 @@
}, },
"devDependencies": { "devDependencies": {
"@types/mocha": "7.0.2", "@types/mocha": "7.0.2",
"@types/node": "14.0.27", "@types/node": "^14.0.27",
"@types/ws": "^7.2.6", "@types/ws": "^7.2.6",
"assert": "^2.0.0", "assert": "^2.0.0",
"dotenv": "^8.2.0", "dotenv": "^8.2.0",

View File

@@ -142,7 +142,7 @@ export class WAConnection extends Base {
} }
/** Set the callback for presence updates; if someone goes offline/online, this callback will be fired */ /** Set the callback for presence updates; if someone goes offline/online, this callback will be fired */
protected registerOnPresenceUpdate() { protected registerOnPresenceUpdate() {
this.registerCallback('Presence', json => this.emit('user-presence-update', json[1])) this.registerCallback('Presence', json => this.emit('user-presence-update', json[1] as PresenceUpdate))
} }
/** inserts an empty chat into the DB */ /** inserts an empty chat into the DB */
protected async chatAdd (jid: string, title?: string) { protected async chatAdd (jid: string, title?: string) {