From b7fe5f04baa5bfebdc7be91d1f82ac7546ceabd1 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Thu, 16 Jul 2020 16:11:52 -0400 Subject: [PATCH] FIX: Deprecation `usernames` is now `recipients` --- .../javascripts/discourse/app/controllers/topic.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/assets/javascripts/discourse/app/controllers/topic.js b/app/assets/javascripts/discourse/app/controllers/topic.js index 38143f2dea..eba29fa2af 100644 --- a/app/assets/javascripts/discourse/app/controllers/topic.js +++ b/app/assets/javascripts/discourse/app/controllers/topic.js @@ -965,16 +965,16 @@ export default Controller.extend(bufferedProperty("model"), { let users = this.get("model.details.allowed_users"); let groups = this.get("model.details.allowed_groups"); - let usernames = []; - users.forEach(user => usernames.push(user.username)); - groups.forEach(group => usernames.push(group.name)); - usernames = usernames.join(); + let recipients = []; + users.forEach(user => recipients.push(user.username)); + groups.forEach(group => recipients.push(group.name)); + recipients = recipients.join(); options = { action: Composer.PRIVATE_MESSAGE, archetypeId: "private_message", draftKey: post.topic.draft_key, - usernames: usernames + recipients }; } else { options = {