Skip to content

Commit 0dac1d4

Browse files
committed
Fix breakage related to matrix-org/matrix-js-sdk#2221
1 parent 72a3b94 commit 0dac1d4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/chat.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,8 +180,8 @@ export default class Chat extends Component {
180180
const isUnsent = lastEventId !== this.lastReceiptSentId
181181
if (differsFromLast && isUnsent) {
182182
console.log("sending receipt")
183-
Client.client.setRoomReadMarkers(this.room.roomId, lastEventId, lastEvent, {}).catch(console.log)
184-
Client.client.sendReadReceipt(lastEvent, {}).then(_ => {
183+
Client.client.setRoomReadMarkers(this.room.roomId, lastEventId, lastEvent).catch(console.log)
184+
Client.client.sendReadReceipt(lastEvent).then(_ => {
185185
// faster to zero these manually than waiting for the server
186186
this.room.setUnreadNotificationCount('total', 0);
187187
this.room.setUnreadNotificationCount('highlight', 0);

0 commit comments

Comments
 (0)