mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-06-02 00:58:19 +08:00
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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(),
|
||||
),
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user