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

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