Skip to content

Commit

Permalink
fix: only directPath determines whether hasMedia or not (fixes #2952)
Browse files Browse the repository at this point in the history
  • Loading branch information
alechkos committed Apr 30, 2024
1 parent 883507d commit 1d276dd
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);

This comment has been minimized.

Copy link
@themazim

themazim Apr 30, 2024

any downside to this for normal chats?

This comment has been minimized.

Copy link
@alechkos

alechkos Apr 30, 2024

Author Collaborator

no


/**
* Message content
Expand Down

0 comments on commit 1d276dd

Please sign in to comment.