🐛 Fix the compose

This commit is contained in:
2025-10-10 01:04:21 +08:00
parent ac424bde36
commit e1ea61c5f1
2 changed files with 17 additions and 7 deletions

View File

@@ -152,7 +152,7 @@ class PostComposeCard extends HookConsumerWidget {
originalPost: originalPost,
repliedPost: repliedPost,
forwardedPost: forwardedPost,
onSuccess: () {
onSuccess: (SnPost createdPost) {
// Mark as submitted
submitted.value = true;
@@ -163,6 +163,9 @@ class PostComposeCard extends HookConsumerWidget {
// Reset the form for new composition
ComposeStateUtils.resetForm(state);
// Call the widget's onSubmit callback to trigger activity list refresh
onSubmit?.call(createdPost);
},
);
}