Fixed read recipt issue
This commit is contained in:
parent
b418895d9d
commit
2ed4fc9fbf
1 changed files with 3 additions and 1 deletions
|
@ -198,7 +198,9 @@ function RoomViewContent({
|
||||||
}
|
}
|
||||||
function trySendingReadReceipt() {
|
function trySendingReadReceipt() {
|
||||||
const { room, timeline } = roomTimeline;
|
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]);
|
mx.sendReadReceipt(timeline[timeline.length - 1]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue