Handle there being no member event when banned
Here, and also in MemberEventListSummary where this also broke.
This commit is contained in:
parent
1f5fdf7945
commit
b18473ccb2
2 changed files with 5 additions and 3 deletions
|
@ -381,7 +381,7 @@ module.exports = React.createClass({
|
|||
// Initialise a user's events
|
||||
if (!userEvents[userId]) {
|
||||
userEvents[userId] = [];
|
||||
avatarMembers.push(e.target);
|
||||
if (e.target) avatarMembers.push(e.target);
|
||||
}
|
||||
userEvents[userId].push({
|
||||
mxEvent: e,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue