From 5044d4f2d63d2eb46ea940948ea2de32533ebb15 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Mon, 10 Sep 2018 14:56:10 +0200 Subject: [PATCH] dont keep the spinner in the memberlist when fetching /members fails --- src/components/views/rooms/MemberList.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/views/rooms/MemberList.js b/src/components/views/rooms/MemberList.js index 223c555fbb..623bdaa821 100644 --- a/src/components/views/rooms/MemberList.js +++ b/src/components/views/rooms/MemberList.js @@ -91,7 +91,9 @@ module.exports = React.createClass({ const cli = MatrixClientPeg.get(); const room = cli.getRoom(this.props.roomId); if (room) { - await room.loadMembersIfNeeded(); + try { + await room.loadMembersIfNeeded(); + } catch(ex) {/* already logged in RoomView */} } },