FIX: Show the BCC option when messaging a single group

FIX: Show the BCC option when messaging a single group

diff --git a/assets/javascripts/discourse/components/bcc-checkbox.js.es6 b/assets/javascripts/discourse/components/bcc-checkbox.js.es6
index d216621..a557503 100644
--- a/assets/javascripts/discourse/components/bcc-checkbox.js.es6
+++ b/assets/javascripts/discourse/components/bcc-checkbox.js.es6
@@ -7,11 +7,13 @@ export default Component.extend({
   bccAvailable: computed(
     "creatingPrivateMessage",
     "targetRecipients",
+    "targetGroups",
     function() {
       return (
         this.currentUser.staff &&
         this.creatingPrivateMessage &&
-        (this.targetRecipients || "").split(",").length > 1
+        ((this.targetRecipients || "").split(",").length > 1 ||
+          this.targetGroups)
       );
     }
   )
diff --git a/assets/javascripts/discourse/templates/connectors/composer-fields/bcc-checkbox.hbs b/assets/javascripts/discourse/templates/connectors/composer-fields/bcc-checkbox.hbs
index 0e74b5e..f22ce03 100644
--- a/assets/javascripts/discourse/templates/connectors/composer-fields/bcc-checkbox.hbs
+++ b/assets/javascripts/discourse/templates/connectors/composer-fields/bcc-checkbox.hbs
@@ -1,4 +1,5 @@
 {{bcc-checkbox
   creatingPrivateMessage=model.creatingPrivateMessage
   targetRecipients=model.targetRecipients
-  checked=model.use_bcc}}
+  checked=model.use_bcc
+  targetGroups=model.hasTargetGroups}}

GitHub sha: d82a011e

This commit appears in #3 which was approved by eviltrout. It was merged by romanrizzi.