Merge branch 'krille/read-receipt-fix' into 'master'

fix: Send read receipt only on focus

See merge request ChristianPauly/fluffychat-flutter!140
onboarding
Christian Pauly 5 years ago
commit 0bd3f583a3

@ -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…
Cancel
Save