♻️ Use the dialog when launch from quick reply to post

This commit is contained in:
2025-10-12 22:32:43 +08:00
parent 67def56ad1
commit 9704a4c2c7
2 changed files with 15 additions and 14 deletions

View File

@@ -50,7 +50,11 @@ class PostComposeDialog extends HookConsumerWidget {
final isWide = isWideScreen(context);
useEffect(() {
if (!prompted.value && originalPost == null && drafts.isNotEmpty) {
if (!prompted.value &&
originalPost == null &&
initialState?.replyingTo == null &&
initialState?.forwardingTo == null &&
drafts.isNotEmpty) {
prompted.value = true;
WidgetsBinding.instance.addPostFrameCallback((_) {
_showRestoreDialog(ref, restoredInitialState);