refresh live msg if needed

Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-04-30 10:13:31 +08:00
parent 5797c36c4e
commit 9605840a68
3 changed files with 31 additions and 14 deletions

View File

@@ -187,7 +187,9 @@ class _LiveRoomPageState extends State<LiveRoomPage>
void didChangeAppLifecycleState(AppLifecycleState state) {
if (plPlayerController.visible = state == .resumed) {
if (!plPlayerController.showDanmaku) {
_liveRoomController.startLiveTimer();
_liveRoomController
..refreshMsgIfNeeded()
..startLiveTimer();
plPlayerController.showDanmaku = true;
}
} else if (state == .paused) {