Don't try to send read receipts if the room is null
parent
86ef0e762e
commit
f9385b455a
|
@ -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 New Issue