1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-08 21:42:24 +03:00

Null guard getMember

This commit is contained in:
Kegan Dougal
2016-01-04 10:11:42 +00:00
parent 640aa45956
commit 75ad96c8ba

View File

@@ -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