fix: Send read receipt only on focus
This commit is contained in:
parent
c119f43d1c
commit
98316f1b4e
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue