mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-12-29 09:32:35 +01:00
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 New Issue
Block a user