Don't try to send read receipts if the room is null
This commit is contained in:
parent
86ef0e762e
commit
f9385b455a
1 changed files with 1 additions and 0 deletions
|
@ -468,6 +468,7 @@ module.exports = {
|
|||
},
|
||||
|
||||
sendReadReceipt: function() {
|
||||
if (!this.state.room) return;
|
||||
var currentReadUpToEventId = this.state.room.getEventReadUpTo(MatrixClientPeg.get().credentials.userId);
|
||||
var currentReadUpToEventIndex = this._indexForEventId(currentReadUpToEventId);
|
||||
|
||||
|
|
Loading…
Reference in a new issue