From b45af1d6c86137cc95854a6a023b72d29376c716 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Thu, 17 Sep 2015 11:48:37 -0400 Subject: [PATCH] FIX: Replies to whispers should default to whispers --- app/assets/javascripts/discourse/models/composer.js.es6 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/assets/javascripts/discourse/models/composer.js.es6 b/app/assets/javascripts/discourse/models/composer.js.es6 index 2b5241d29e5..1d5961bcd17 100644 --- a/app/assets/javascripts/discourse/models/composer.js.es6 +++ b/app/assets/javascripts/discourse/models/composer.js.es6 @@ -426,6 +426,8 @@ const Composer = RestModel.extend({ if (opts.post) { this.set('post', opts.post); + + this.set('whisper', opts.post.get('post_type') === this.site.get('post_types.whisper')); if (!this.get('topic')) { this.set('topic', opts.post.get('topic')); }