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 3a9cafaf24
commit 9752ae2f33
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) {