Skip to content
This repository has been archived by the owner on Nov 3, 2024. It is now read-only.

Commit

Permalink
Fix breakage related to matrix-org/matrix-js-sdk#2221
Browse files Browse the repository at this point in the history
  • Loading branch information
gleachkr committed Jul 14, 2022
1 parent 72a3b94 commit 0dac1d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/chat.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,8 @@ export default class Chat extends Component {
const isUnsent = lastEventId !== this.lastReceiptSentId
if (differsFromLast && isUnsent) {
console.log("sending receipt")
Client.client.setRoomReadMarkers(this.room.roomId, lastEventId, lastEvent, {}).catch(console.log)
Client.client.sendReadReceipt(lastEvent, {}).then(_ => {
Client.client.setRoomReadMarkers(this.room.roomId, lastEventId, lastEvent).catch(console.log)
Client.client.sendReadReceipt(lastEvent).then(_ => {
// faster to zero these manually than waiting for the server
this.room.setUnreadNotificationCount('total', 0);
this.room.setUnreadNotificationCount('highlight', 0);
Expand Down

0 comments on commit 0dac1d4

Please sign in to comment.