This commit is contained in:
Bruno Windels 2018-09-17 20:01:55 +02:00
parent 841aa4b800
commit e8b4770940
2 changed files with 2 additions and 2 deletions

View file

@ -598,7 +598,7 @@ module.exports = React.createClass({
if (!this.unmounted) { if (!this.unmounted) {
this.setState({membersLoaded: true}); this.setState({membersLoaded: true});
} }
} catch(err) { } catch (err) {
const errorMessage = `Fetching room members for ${room.roomId} failed.` + const errorMessage = `Fetching room members for ${room.roomId} failed.` +
" Room members will appear incomplete."; " Room members will appear incomplete.";
console.error(errorMessage); console.error(errorMessage);

View file

@ -107,7 +107,7 @@ module.exports = React.createClass({
this.setState({loading: true}); this.setState({loading: true});
try { try {
await room.loadMembersIfNeeded(); await room.loadMembersIfNeeded();
} catch(ex) {/* already logged in RoomView */} } catch (ex) {/* already logged in RoomView */}
if (this._mounted) { if (this._mounted) {
this.setState(this._getMembersState(this.roomMembers())); this.setState(this._getMembersState(this.roomMembers()));
this._listenForMembersChanges(); this._listenForMembersChanges();