opt: add live emoticonUnique

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-04-13 15:18:35 +08:00
parent a93fbd4444
commit d3d2715418
2 changed files with 5 additions and 1 deletions

View File

@@ -93,6 +93,7 @@ class _ReplyPageState extends CommonPublishPageState<LiveSendDmPanel> {
message: emote.emoticonUnique!,
dmType: 1,
emoticonOptions: '[object Object]',
emoticonUnique: emote.emoji,
);
},
),
@@ -218,6 +219,7 @@ class _ReplyPageState extends CommonPublishPageState<LiveSendDmPanel> {
List? pictures,
int? dmType,
emoticonOptions,
emoticonUnique,
}) async {
if (!liveRoomController.isLogin) {
SmartDialog.showToast('未登录');
@@ -235,7 +237,7 @@ class _ReplyPageState extends CommonPublishPageState<LiveSendDmPanel> {
SmartDialog.showToast('发送成功');
liveRoomController.plPlayerController.danmakuController?.addDanmaku(
DanmakuContentItem(
message,
emoticonUnique ?? message,
type: DanmakuItemType.scroll,
selfSend: true,
),

View File

@@ -263,6 +263,7 @@ class _LiveRoomPageState extends State<LiveRoomPage>
}
Widget get _buildPH => Scaffold(
resizeToAvoidBottomInset: false,
appBar: _buildAppBar,
backgroundColor: Colors.transparent,
body: Column(
@@ -271,6 +272,7 @@ class _LiveRoomPageState extends State<LiveRoomPage>
);
Widget get _buildPP => Scaffold(
resizeToAvoidBottomInset: false,
backgroundColor: Colors.transparent,
body: Stack(
children: [