From 5d0aa8d7f75eabaf2694f00b2fb51a0f1bead43c Mon Sep 17 00:00:00 2001 From: Luke Barnard Date: Fri, 27 Oct 2017 11:37:45 +0100 Subject: [PATCH] Handle 403 when inspecting invited users as non-member --- src/stores/GroupStore.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/stores/GroupStore.js b/src/stores/GroupStore.js index 1d3526ecd5..e169e13ddc 100644 --- a/src/stores/GroupStore.js +++ b/src/stores/GroupStore.js @@ -52,6 +52,10 @@ export default class GroupStore extends EventEmitter { }); this._notifyListeners(); }).catch((err) => { + // Invited users not visible to non-members + if (err.httpStatus === 403) { + return; + } console.error("Failed to get group invited member list: " + err); this.emit('error', err); });