Merge pull request #3787 from matrix-org/travis/membership-tile
Fix NPE when filtering the room listpull/21833/head
commit
6ef6b5909f
|
@ -380,7 +380,8 @@ module.exports = createReactClass({
|
|||
/>;
|
||||
|
||||
const { room } = this.props;
|
||||
if (room.getMember(dmUserId).membership === "join" && room.getJoinedMemberCount() === 2) {
|
||||
const member = room.getMember(dmUserId);
|
||||
if (member && member.membership === "join" && room.getJoinedMemberCount() === 2) {
|
||||
const UserOnlineDot = sdk.getComponent('rooms.UserOnlineDot');
|
||||
dmOnline = <UserOnlineDot userId={dmUserId} />;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue