mirror of https://github.com/vector-im/riot-web
Null guard getMember
parent
640aa45956
commit
75ad96c8ba
|
@ -134,6 +134,9 @@ module.exports = React.createClass({
|
|||
|
||||
for (var i = 0; i < receipts.length; ++i) {
|
||||
var member = room.getMember(receipts[i].userId);
|
||||
if (!member) {
|
||||
continue;
|
||||
}
|
||||
|
||||
// Using react refs here would mean both getting Velociraptor to expose
|
||||
// them and making them scoped to the whole RoomView. Not impossible, but
|
||||
|
|
Loading…
Reference in New Issue