mirror of
https://github.com/vector-im/element-web.git
synced 2026-05-05 12:16:53 +02:00
Don't try to send read receipts if the room is null
This commit is contained in:
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…
x
Reference in New Issue
Block a user