-
Notifications
You must be signed in to change notification settings - Fork 292
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ES6: migrated "entity/message" #1097
Conversation
app/script/entity/message/Asset.js
Outdated
|
||
/** | ||
* Check if asset is a medium image. | ||
* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need all these empty lines in docs?
|
||
this.get_icon_classes = ko.pureComputed(() => { | ||
let css_classes = this.accent_color(); | ||
if ((Date.now() - this.timestamp()) < 2000) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const
app/script/entity/message/Message.js
Outdated
* Check if the message content can be downloaded. | ||
* @returns {Boolean} True, if the message has downloadable content. | ||
*/ | ||
is_downloadable() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Old code: return @get_first_asset?().download?
Something seems to be missing here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#fixed 😎
app/script/entity/message/Message.js
Outdated
if (asset_et && (typeof asset_et.download === 'function')) { | ||
return true; | ||
} | ||
return false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no need for this extra return, covered by 222
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#fixed :)
finally 🎉 |
Gut Ding will Weile haben. :D |
Type of change
Screenshot