There is this function in thread.js and I need to change 2 things in it.
- ORDER.ASC should be ORDER.DECS
- and changes should only be applied to 'Discuss' channel.
very new to JS so need some help
init: function (parent, options) {
this._super.apply(this, arguments);
this.options = _.defaults(options || {}, {
display_order: ORDER.ASC,
display_needactions: true,
display_stars: true,
display_document_link: true,
display_avatar: true,
shorten_messages: true,
squash_close_messages: true,
display_reply_icon: false,
});
this.expanded_msg_ids = [];
this.selected_id = null;
},