Fix NPE if you cold boot vector on a URL with a room which you were invited to but not yet joined.
This commit is contained in:
parent
feaf2a319b
commit
d4a5ab11d4
1 changed files with 1 additions and 1 deletions
|
@ -160,7 +160,7 @@ module.exports = {
|
||||||
},
|
},
|
||||||
|
|
||||||
roomMembers: function(limit) {
|
roomMembers: function(limit) {
|
||||||
var all_members = this.memberDict;
|
var all_members = this.memberDict || {};
|
||||||
var all_user_ids = Object.keys(all_members);
|
var all_user_ids = Object.keys(all_members);
|
||||||
|
|
||||||
if (this.memberSort) all_user_ids.sort(this.memberSort);
|
if (this.memberSort) all_user_ids.sort(this.memberSort);
|
||||||
|
|
Loading…
Reference in a new issue