Skip to content
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

Merged
merged 50 commits into from
Apr 20, 2017
Merged

ES6: migrated "entity/message" #1097

merged 50 commits into from
Apr 20, 2017

Conversation

bennycode
Copy link
Contributor

Type of change

Screenshot


/**
* Check if asset is a medium image.
*
Copy link
Contributor

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) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

const

* Check if the message content can be downloaded.
* @returns {Boolean} True, if the message has downloadable content.
*/
is_downloadable() {
Copy link
Contributor

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#fixed 😎

if (asset_et && (typeof asset_et.download === 'function')) {
return true;
}
return false;
Copy link
Contributor

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#fixed :)

@bennycode bennycode merged commit fe8bddc into dev Apr 20, 2017
@bennycode bennycode deleted the es6-entity branch April 20, 2017 10:11
@herrmannplatz
Copy link
Contributor

finally 🎉

@bennycode
Copy link
Contributor Author

Gut Ding will Weile haben. :D

@lipis lipis mentioned this pull request Apr 20, 2017
79 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants