opt live chat list

Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-03-09 10:20:12 +08:00
parent 4683939364
commit 5586d12b1f
2 changed files with 5 additions and 3 deletions

View File

@@ -432,16 +432,18 @@ class LiveRoomController extends GetxController {
} }
void addDm(dynamic msg, [DanmakuContentItem<DanmakuExtra>? item]) { void addDm(dynamic msg, [DanmakuContentItem<DanmakuExtra>? item]) {
messages.add(msg);
if (plPlayerController.showDanmaku) { if (plPlayerController.showDanmaku) {
if (item != null) { if (item != null) {
danmakuController?.addDanmaku(item); danmakuController?.addDanmaku(item);
} }
if (autoScroll && !disableAutoScroll.value) { if (autoScroll && !disableAutoScroll.value) {
messages.add(msg);
scrollToBottom(); scrollToBottom();
return;
} }
} }
messages.addOnly(msg);
} }
@pragma('vm:notify-debugger-on-exception') @pragma('vm:notify-debugger-on-exception')

View File

@@ -801,7 +801,7 @@ packages:
description: description:
path: "." path: "."
ref: "version_4.7.2" ref: "version_4.7.2"
resolved-ref: "4e5dbc40d93c4deca7dfec9457598d9cc68f8f33" resolved-ref: "81b8a71982f89b46fa868b315cd71ff6a6ddf895"
url: "https://github.com/bggRGjQaUbCoE/getx.git" url: "https://github.com/bggRGjQaUbCoE/getx.git"
source: git source: git
version: "4.7.2" version: "4.7.2"