From ab468aa0397beb6f631fccc706779bd9f85a589f Mon Sep 17 00:00:00 2001 From: Nicolas Constant Date: Sun, 7 Apr 2019 16:15:04 -0400 Subject: [PATCH] fix #76 --- src/app/components/create-status/create-status.component.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/app/components/create-status/create-status.component.ts b/src/app/components/create-status/create-status.component.ts index dd4ffe59..6390180d 100644 --- a/src/app/components/create-status/create-status.component.ts +++ b/src/app/components/create-status/create-status.component.ts @@ -191,6 +191,9 @@ export class CreateStatusComponent implements OnInit, OnDestroy { globalUniqueMentions.push(mention); } + const selectedUser = this.toolsService.getSelectedAccounts()[0]; + globalUniqueMentions = globalUniqueMentions.filter(x => x.toLowerCase() !== `${selectedUser.username}@${selectedUser.instance}`.toLowerCase()); + return globalUniqueMentions; }