Merge pull request #76 from matrix-org/kegan/bugfix-read-receipt

Null guard getMember

Fixes https://github.com/vector-im/vector-web/issues/566
pull/21833/head
Kegsay 2016-01-05 11:26:04 +00:00
commit a6e735dbde
1 changed files with 3 additions and 0 deletions

View File

@ -160,6 +160,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