mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
@@ -30,7 +30,7 @@ abstract class CommonPublishPageState<T extends CommonPublishPage>
|
||||
late final controller = ChatBottomPanelContainerController<PanelType>();
|
||||
TextEditingController get editController;
|
||||
|
||||
Rx<PanelType> panelType = PanelType.none.obs;
|
||||
final Rx<PanelType> panelType = PanelType.none.obs;
|
||||
late final RxBool readOnly = false.obs;
|
||||
late final RxBool enablePublish = false.obs;
|
||||
|
||||
|
||||
@@ -462,6 +462,7 @@ class LiveRoomController extends GetxController {
|
||||
fromEmote: fromEmote,
|
||||
liveRoomController: this,
|
||||
items: savedDanmaku,
|
||||
autofocus: !fromEmote,
|
||||
onSave: (msg) {
|
||||
if (msg.isEmpty) {
|
||||
savedDanmaku?.clear();
|
||||
|
||||
@@ -20,6 +20,7 @@ class LiveSendDmPanel extends CommonRichTextPubPage {
|
||||
super.key,
|
||||
super.items,
|
||||
super.onSave,
|
||||
super.autofocus = true,
|
||||
this.fromEmote = false,
|
||||
required this.liveRoomController,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user