Compatibility with older versions of Node + decodeMedia bug fix

This commit is contained in:
Adhiraj
2020-05-15 22:00:12 +05:30
parent 80adc095a3
commit ea5ca61e49
7 changed files with 29 additions and 20 deletions

View File

@@ -23,7 +23,7 @@ module.exports = {
* @return {Promise<[object, object]>}
*/
getStatus: function (jid) {
jid = jid ?? this.userMetaData.id
jid = jid || this.userMetaData.id
return this.query(["query","Status",jid])
},
/**
@@ -32,7 +32,7 @@ module.exports = {
* @return {Promise<[object, object]>}
*/
getProfilePicture: function (jid) {
jid = jid ?? this.userMetaData.id
jid = jid || this.userMetaData.id
return this.query(["query","ProfilePicThumb",jid])
},
/**