Skip to content

Commit

Permalink
fix: only directPath determines whether hasMedia or not
Browse files Browse the repository at this point in the history
  • Loading branch information
alechkos committed Apr 30, 2024
1 parent 883507d commit 51b1943
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/structures/Message.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class Message extends Base {
* Indicates if the message has media available for download
* @type {boolean}
*/
this.hasMedia = Boolean(data.mediaKey && data.directPath);
this.hasMedia = Boolean(data.directPath);

/**
* Message content
Expand Down

0 comments on commit 51b1943

Please sign in to comment.