summaryrefslogtreecommitdiffstats
path: root/webapp/actions
diff options
context:
space:
mode:
authorGeorge Goldberg <george@gberg.me>2017-04-10 17:21:54 +0100
committerGitHub <noreply@github.com>2017-04-10 17:21:54 +0100
commit9c3b96661bfe358cfad2b7ceb43b40fee6f3c544 (patch)
tree59751a07c1d40cf4a5f4cc2dc47b213846433431 /webapp/actions
parent9fa4712dd7fb2b06cff5f3d6dd37c2ecfba070c5 (diff)
downloadchat-9c3b96661bfe358cfad2b7ceb43b40fee6f3c544.tar.gz
chat-9c3b96661bfe358cfad2b7ceb43b40fee6f3c544.tar.bz2
chat-9c3b96661bfe358cfad2b7ceb43b40fee6f3c544.zip
PLT-6253: Handle demote self from Team Admin. (#6056)
Diffstat (limited to 'webapp/actions')
-rw-r--r--webapp/actions/user_actions.jsx12
1 files changed, 12 insertions, 0 deletions
diff --git a/webapp/actions/user_actions.jsx b/webapp/actions/user_actions.jsx
index 70df4776e..ecbe83feb 100644
--- a/webapp/actions/user_actions.jsx
+++ b/webapp/actions/user_actions.jsx
@@ -953,3 +953,15 @@ export function getMissingProfiles(ids, success, error) {
AsyncClient.getProfilesByIds(missingIds, success, error);
}
+
+export function loadMyTeamMembers() {
+ Client.getMyTeamMembers((data) => {
+ AppDispatcher.handleServerAction({
+ type: ActionTypes.RECEIVED_MY_TEAM_MEMBERS,
+ team_members: data
+ });
+ AsyncClient.getMyTeamsUnread();
+ }, (err) => {
+ AsyncClient.dispatchError(err, 'getMyTeamMembers');
+ });
+}