Don't try to send read receipts if the room is null

pull/21833/head
David Baker 2015-11-05 13:27:03 +00:00
parent 86ef0e762e
commit f9385b455a
1 changed files with 1 additions and 0 deletions

View File

@ -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);