mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-19 23:54:01 +08:00
@@ -30,7 +30,7 @@ abstract class CommonPublishPageState<T extends CommonPublishPage>
|
|||||||
late final controller = ChatBottomPanelContainerController<PanelType>();
|
late final controller = ChatBottomPanelContainerController<PanelType>();
|
||||||
TextEditingController get editController;
|
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 readOnly = false.obs;
|
||||||
late final RxBool enablePublish = false.obs;
|
late final RxBool enablePublish = false.obs;
|
||||||
|
|
||||||
|
|||||||
@@ -462,6 +462,7 @@ class LiveRoomController extends GetxController {
|
|||||||
fromEmote: fromEmote,
|
fromEmote: fromEmote,
|
||||||
liveRoomController: this,
|
liveRoomController: this,
|
||||||
items: savedDanmaku,
|
items: savedDanmaku,
|
||||||
|
autofocus: !fromEmote,
|
||||||
onSave: (msg) {
|
onSave: (msg) {
|
||||||
if (msg.isEmpty) {
|
if (msg.isEmpty) {
|
||||||
savedDanmaku?.clear();
|
savedDanmaku?.clear();
|
||||||
|
|||||||
@@ -20,6 +20,7 @@ class LiveSendDmPanel extends CommonRichTextPubPage {
|
|||||||
super.key,
|
super.key,
|
||||||
super.items,
|
super.items,
|
||||||
super.onSave,
|
super.onSave,
|
||||||
|
super.autofocus = true,
|
||||||
this.fromEmote = false,
|
this.fromEmote = false,
|
||||||
required this.liveRoomController,
|
required this.liveRoomController,
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user