mirror of
https://github.com/FranP-code/Baileys.git
synced 2025-10-13 00:32:22 +00:00
Compatibility with older versions of Node + decodeMedia bug fix
This commit is contained in:
@@ -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])
|
||||
},
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user