diff --git a/lib/views/chat.dart b/lib/views/chat.dart index 929a3cc..7d7ecbe 100644 --- a/lib/views/chat.dart +++ b/lib/views/chat.dart @@ -494,7 +494,8 @@ class _ChatState extends State<_Chat> { if (room.notificationCount != null && room.notificationCount > 0 && timeline != null && - timeline.events.isNotEmpty) { + timeline.events.isNotEmpty && + Matrix.of(context).webHasFocus) { room.sendReadReceipt(timeline.events.first.eventId); }