From 7af85cba0ad13b801013996afcc775436874c0b6 Mon Sep 17 00:00:00 2001
From: "Khoa, Le Ngoc" <khoaln6@gmail.com>
Date: Tue, 1 Mar 2016 10:55:31 +0700
Subject: Do not show up inactive account in Suggestion Box of Channel

---
 web/react/components/suggestion/at_mention_provider.jsx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'web/react/components/suggestion/at_mention_provider.jsx')

diff --git a/web/react/components/suggestion/at_mention_provider.jsx b/web/react/components/suggestion/at_mention_provider.jsx
index 4dc72f69a..064b75ac5 100644
--- a/web/react/components/suggestion/at_mention_provider.jsx
+++ b/web/react/components/suggestion/at_mention_provider.jsx
@@ -89,7 +89,7 @@ export default class AtMentionProvider {
             for (const id of Object.keys(users)) {
                 const user = users[id];
 
-                if (user.username.startsWith(usernamePrefix)) {
+                if (user.username.startsWith(usernamePrefix) && user.delete_at <= 0) {
                     filtered.push(user);
                 }
 
-- 
cgit v1.2.3-1-g7c22

