diff options
author | Claire <claire.github-309c@sitedethib.com> | 2022-11-02 18:09:39 +0100 |
---|---|---|
committer | Claire <claire.github-309c@sitedethib.com> | 2022-11-06 10:42:15 +0100 |
commit | e42875d19566ee95195ae050ac4471711c442136 (patch) | |
tree | e7ffee13a745559f00391f481b974153d0d6caa8 /app/javascript/flavours | |
parent | 0ad919b19257b7d8eb447f7955030927d26cdbe6 (diff) |
[Glitch] Fix edits not being immediately reflected
Port 74d40c7d8fac3ccc263af29c622f4481e18e8c59 to glitch-soc Signed-off-by: Claire <claire.github-309c@sitedethib.com>
Diffstat (limited to 'app/javascript/flavours')
-rw-r--r-- | app/javascript/flavours/glitch/actions/compose.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/javascript/flavours/glitch/actions/compose.js b/app/javascript/flavours/glitch/actions/compose.js index 15476fc59..54909b56e 100644 --- a/app/javascript/flavours/glitch/actions/compose.js +++ b/app/javascript/flavours/glitch/actions/compose.js @@ -8,7 +8,7 @@ import { recoverHashtags } from 'flavours/glitch/utils/hashtag'; import resizeImage from 'flavours/glitch/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'; @@ -223,6 +223,10 @@ export function submitCompose(routerHistory) { } }; + if (statusId) { + dispatch(importFetchedStatus({ ...response.data })); + } + if (statusId === null) { insertIfOnline('home'); } |