mirror of
https://github.com/vector-im/element-web.git
synced 2025-08-31 19:31:11 +02:00
move error message to caller of lazy loading
This commit is contained in:
parent
34cb89e86a
commit
33f5560666
@ -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);
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user