mirror of
https://github.com/SchildiChat/element-web.git
synced 2024-10-01 01:26:12 -04:00
Fix npe
This commit is contained in:
parent
cfbef0177e
commit
d08c47a328
@ -62,6 +62,7 @@ module.exports = {
|
||||
},
|
||||
|
||||
roomMembers: function(limit) {
|
||||
if (!this.props.roomId) return {};
|
||||
var cli = MatrixClientPeg.get();
|
||||
var all_members = cli.getRoom(this.props.roomId).currentState.members;
|
||||
var all_user_ids = Object.keys(all_members);
|
||||
|
Loading…
Reference in New Issue
Block a user