From 2ed4fc9fbfb59e06209397216bac4524f7e41a2e Mon Sep 17 00:00:00 2001 From: Ajay Bura Date: Mon, 13 Sep 2021 19:47:40 +0530 Subject: [PATCH] Fixed read recipt issue --- src/app/organisms/room/RoomViewContent.jsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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]); } }