Don't send read receipts for our own events and null check in a few places.
This commit is contained in:
parent
2a4a02f36e
commit
4bf6992398
3 changed files with 21 additions and 11 deletions
|
@ -78,6 +78,8 @@ module.exports = React.createClass({
|
|||
|
||||
var room = MatrixClientPeg.get().getRoom(this.props.mxEvent.getRoomId());
|
||||
|
||||
if (!room) return [];
|
||||
|
||||
var userIds = room.getUsersReadUpTo(this.props.mxEvent);
|
||||
|
||||
var MemberAvatar = sdk.getComponent('atoms.MemberAvatar');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue