Revert "Rename 'target usernames' with 'target recipients' in Composer (#8468)"

This reverts commit ebb288dc2c.
This commit is contained in:
Bianca Nenciu
2019-12-20 11:56:20 +02:00
parent 7030c93206
commit 9fe11d0fc3
8 changed files with 47 additions and 101 deletions
@@ -97,11 +97,16 @@ export default Component.extend({
const composer = this.composer;
if (composer.get("privateMessage")) {
const recipients = composer.targetRecipientsArray;
let usernames = composer.get("targetUsernames");
if (usernames) {
usernames = usernames.split(",");
}
if (
recipients.length > 0 &&
recipients.every(r => r.name === this.currentUser.get("username"))
usernames &&
usernames.length === 1 &&
usernames[0] === this.currentUser.get("username")
) {
const message =
this._yourselfConfirm ||