about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authorClaire <claire.github-309c@sitedethib.com>2022-11-02 18:09:39 +0100
committerGitHub <noreply@github.com>2022-11-02 18:09:39 +0100
commit74d40c7d8fac3ccc263af29c622f4481e18e8c59 (patch)
tree90830fcd6ee4315c3cd874db5f023dbcfe986119 /app
parente0eb39d41b05115df973d5a9676b67a9309d4ff9 (diff)
Fix edits not being immediately reflected (#19673)
Fixes #19546
Diffstat (limited to 'app')
-rw-r--r--app/javascript/mastodon/actions/compose.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/javascript/mastodon/actions/compose.js b/app/javascript/mastodon/actions/compose.js
index e29b88a50..a9b7efc4a 100644
--- a/app/javascript/mastodon/actions/compose.js
+++ b/app/javascript/mastodon/actions/compose.js
@@ -7,7 +7,7 @@ import { tagHistory } from 'mastodon/settings';
 import resizeImage from 'mastodon/utils/resize_image';
 import { showAlert, showAlertForError } from './alerts';
 import { useEmoji } from './emojis';
-import { importFetchedAccounts } from './importer';
+import { importFetchedAccounts, importFetchedStatus } from './importer';
 import { openModal } from './modal';
 import { updateTimeline } from './timelines';
 
@@ -194,6 +194,10 @@ export function submitCompose(routerHistory) {
         }
       };
 
+      if (statusId) {
+        dispatch(importFetchedStatus({ ...response.data }));
+      }
+
       if (statusId === null && response.data.visibility !== 'direct') {
         insertIfOnline('home');
       }