Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-01-05 11:11:28 +08:00
parent 738c057304
commit daf01df5aa
3 changed files with 31 additions and 20 deletions

View File

@@ -926,7 +926,7 @@ class VideoDetailController extends GetxController
if (isPlaying) {
await plPlayerController.pause();
}
await Navigator.of(Get.context!).push(
Navigator.of(Get.context!).push(
GetDialogRoute(
pageBuilder: (buildContext, animation, secondaryAnimation) {
return SendDanmakuPanel(

View File

@@ -117,7 +117,13 @@ class WhisperController extends GetxController {
if (accountInfo != null) {
i.accountInfo = accountInfo;
}
if (i.talkerId == 844424930131966) {
if (i.talkerId == 0) {
i.accountInfo = AccountListModel(
name: '客服消息',
face:
'https://i0.hdslb.com/bfs/activity-plat/static/20230809/f87fc7ea98282a4dd48ec7743044b0bf/OWdoP9ZXAX.png',
);
} else if (i.talkerId == 844424930131966) {
i.accountInfo = AccountListModel(
name: 'UP主小助手',
face:

View File

@@ -244,14 +244,17 @@ class _WhisperPageState extends State<WhisperPage> {
Get.toNamed(
'/whisperDetail',
parameters: {
'talkerId': sessionList[i]
.talkerId
.toString(),
'name':
sessionList[i].accountInfo.name,
'face':
sessionList[i].accountInfo.face,
if (sessionList[i].accountInfo.mid !=
'talkerId':
'${sessionList[i].talkerId}',
'name': sessionList[i]
.accountInfo
?.name ??
'',
'face': sessionList[i]
.accountInfo
?.face ??
'',
if (sessionList[i].accountInfo?.mid !=
null)
'mid': sessionList[i]
.accountInfo
@@ -281,16 +284,18 @@ class _WhisperPageState extends State<WhisperPage> {
),
title: Text(
sessionList[i].accountInfo?.name ?? ""),
subtitle: Text(content,
maxLines: 1,
overflow: TextOverflow.ellipsis,
style: Theme.of(context)
.textTheme
.labelMedium!
.copyWith(
color: Theme.of(context)
.colorScheme
.outline)),
subtitle: Text(
'$content',
maxLines: 1,
overflow: TextOverflow.ellipsis,
style: Theme.of(context)
.textTheme
.labelMedium!
.copyWith(
color: Theme.of(context)
.colorScheme
.outline),
),
trailing: Text(
Utils.dateFormat(
sessionList[i].lastMsg.timestamp,