Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-02-27 16:52:53 +08:00
parent 889f6d01c2
commit 1d35abef63
5 changed files with 15 additions and 13 deletions

View File

@@ -48,6 +48,7 @@ class WhisperDetailController extends CommonListController<RspSessionMsg, Msg> {
} else {
ackSessionMsg(msgs.last.msgSeqno.toInt());
}
msgs.removeWhere((e) => e.msgType == MsgType.EN_MSG_TYPE_DRAW_BACK.value);
eInfos ??= <EmotionInfo>[];
eInfos!.addAll(response.response.eInfos);
}

View File

@@ -156,7 +156,7 @@ class _WhisperDetailPageState
response != null && response.isNotEmpty
? ChatListView.separated(
itemCount: response.length,
padding: const EdgeInsets.all(14),
padding: const .all(kChatListPadding),
physics: const AlwaysScrollableScrollPhysics(
parent: ClampingScrollPhysics(),
),

View File

@@ -55,10 +55,10 @@ class ChatItem extends StatelessWidget {
@override
Widget build(BuildContext context) {
final msgType = item.msgType;
final isRevoke = msgType == MsgType.EN_MSG_TYPE_DRAW_BACK.value; // 撤回消息
if (isRevoke) {
return const SizedBox.shrink();
}
// final isRevoke = msgType == MsgType.EN_MSG_TYPE_DRAW_BACK.value; // 撤回消息
// if (isRevoke) {
// return const SizedBox.shrink();
// }
late final ThemeData theme = Theme.of(context);
late final Color textColor = isOwner