From 7f437ac00f22bc11119099636ea57b781cc84b02 Mon Sep 17 00:00:00 2001 From: Saina Amiri Moghadam Date: Fri, 2 Feb 2024 13:01:46 +0100 Subject: [PATCH] video and poll state bug --- lib/views/video_view/video_player.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/views/video_view/video_player.dart b/lib/views/video_view/video_player.dart index 806b220..7efea07 100644 --- a/lib/views/video_view/video_player.dart +++ b/lib/views/video_view/video_player.dart @@ -81,8 +81,8 @@ class VideoPlayerPageState extends ConsumerState { .read(courseViewModelProvider) .course; if (course != null) { - if ((course.chatEnabled || course.vodChatEnabled) && - widget.stream.chatEnabled) { + if ((course.chatEnabled && widget.stream.chatEnabled) || + (course.vodChatEnabled && widget.stream.chatEnabled)) { setState(() { _isChatActive = true; _isPollActive = true;