FIX: explicity set username when creating new message via URL

This commit is contained in:
Arpit Jalan 2018-03-14 23:04:18 +05:30
parent 23e690d0c2
commit b83ba97675

View File

@ -677,6 +677,10 @@ export default Ember.Controller.extend({
composerModel.set('composeState', Composer.OPEN);
composerModel.set('isWarning', false);
if (opts.usernames) {
this.set('model.targetUsernames', opts.usernames);
}
if (opts.topicTitle && opts.topicTitle.length <= this.siteSettings.max_topic_title_length) {
this.set('model.title', opts.topicTitle);
}