🐛 Fixes the lifecycle issue of chat #211

This commit is contained in:
2025-12-27 22:48:55 +08:00
parent f541580281
commit 6b0343d3dc
4 changed files with 138 additions and 124 deletions

View File

@@ -816,17 +816,7 @@ class PostBody extends ConsumerWidget {
Row(
spacing: 8,
crossAxisAlignment: CrossAxisAlignment.center,
children: [
const Icon(Symbols.edit, size: 16),
hideOverlay
? text
: Tooltip(
message: !isFullPost && isRelativeTime
? item.editedAt!.formatSystem()
: item.editedAt!.formatRelative(context),
child: text,
),
],
children: [const Icon(Symbols.edit, size: 16), text],
),
);
}