From: Ajay Bura Date: Mon, 13 Sep 2021 14:17:40 +0000 (+0530) Subject: Fixed read recipt issue X-Git-Tag: v1.3.0^2~7 X-Git-Url: https://git.wafflesoft.org/?a=commitdiff_plain;h=2ed4fc9fbfb59e06209397216bac4524f7e41a2e;p=cinny.git Fixed read recipt issue --- diff --git a/src/app/organisms/room/RoomViewContent.jsx b/src/app/organisms/room/RoomViewContent.jsx index 57784b6..efa8318 100644 --- a/src/app/organisms/room/RoomViewContent.jsx +++ b/src/app/organisms/room/RoomViewContent.jsx @@ -198,7 +198,9 @@ function RoomViewContent({ } function trySendingReadReceipt() { const { room, timeline } = roomTimeline; - if (doesRoomHaveUnread(room) && timeline.length !== 0) { + if ( + (doesRoomHaveUnread(room) || initMatrix.notifications.hasNoti(roomId)) + && timeline.length !== 0) { mx.sendReadReceipt(timeline[timeline.length - 1]); } }