From 83bfd95f65f5e74402f7146feecb68b37dd0bf84 Mon Sep 17 00:00:00 2001
From: Joram Wilander <jwawilander@gmail.com>
Date: Fri, 28 Apr 2017 10:12:30 -0400
Subject: Fix inactive users showing up in team members modal (#6260)

---
 webapp/actions/user_actions.jsx | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

(limited to 'webapp/actions/user_actions.jsx')

diff --git a/webapp/actions/user_actions.jsx b/webapp/actions/user_actions.jsx
index f6c9e0f60..eacb0df80 100644
--- a/webapp/actions/user_actions.jsx
+++ b/webapp/actions/user_actions.jsx
@@ -629,10 +629,7 @@ export function checkMfa(loginId, success, error) {
 export function updateActive(userId, active, success, error) {
     Client.updateActive(userId, active,
         (data) => {
-            AppDispatcher.handleServerAction({
-                type: ActionTypes.RECEIVED_PROFILE,
-                profile: data
-            });
+            UserStore.saveProfile(data);
 
             if (success) {
                 success(data);
-- 
cgit v1.2.3-1-g7c22

