move error message to caller of lazy loading

pull/21833/head
Bruno Windels 2018-07-19 15:04:39 +02:00
parent 34cb89e86a
commit 33f5560666
1 changed files with 6 additions and 1 deletions

View File

@ -317,7 +317,12 @@ module.exports = React.createClass({
// lazy load members if enabled
if (SettingsStore.isFeatureEnabled('feature_lazyloading')) {
MatrixClientPeg.get().loadRoomMembersIfNeeded(room.roomId);
MatrixClientPeg.get().loadRoomMembersIfNeeded(room.roomId).catch((err) => {
const errorMessage = `Fetching room members for ${this.roomId} failed.` +
" Room members will appear incomplete.";
console.error(errorMessage);
console.error(err);
});
}
}
}