You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-08 21:42:24 +03:00
Merge pull request #76 from matrix-org/kegan/bugfix-read-receipt
Null guard getMember Fixes https://github.com/vector-im/vector-web/issues/566
This commit is contained in:
@@ -160,6 +160,9 @@ module.exports = React.createClass({
|
|||||||
|
|
||||||
for (var i = 0; i < receipts.length; ++i) {
|
for (var i = 0; i < receipts.length; ++i) {
|
||||||
var member = room.getMember(receipts[i].userId);
|
var member = room.getMember(receipts[i].userId);
|
||||||
|
if (!member) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
// Using react refs here would mean both getting Velociraptor to expose
|
// Using react refs here would mean both getting Velociraptor to expose
|
||||||
// them and making them scoped to the whole RoomView. Not impossible, but
|
// them and making them scoped to the whole RoomView. Not impossible, but
|
||||||
|
|||||||
Reference in New Issue
Block a user