Skip to content

Commit

Permalink
TW-858: Add ADR for how to detect unread message
Browse files Browse the repository at this point in the history
  • Loading branch information
nqhhdev committed Dec 8, 2023
1 parent e007637 commit 6e19178
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/pages/chat/chat_event_list.dart
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import 'package:fluffychat/utils/matrix_sdk_extensions/filtered_timeline_extensi
import 'package:visibility_detector/visibility_detector.dart';

class ChatEventList extends StatelessWidget {
static const visibleFractionAvailable = 0.1;
final ChatController controller;

const ChatEventList({
Expand Down Expand Up @@ -134,7 +135,8 @@ class ChatEventList extends StatelessWidget {
onVisibilityChanged: (visibilityInfo) =>
controller.handleMessageVisibilityChanged(
event,
visibilityInfo.visibleFraction > 0.1,
visibilityInfo.visibleFraction >
visibleFractionAvailable,
),
child: Message(
event,
Expand Down

0 comments on commit 6e19178

Please sign in to comment.