From e42875d19566ee95195ae050ac4471711c442136 Mon Sep 17 00:00:00 2001 From: Claire Date: Wed, 2 Nov 2022 18:09:39 +0100 Subject: [Glitch] Fix edits not being immediately reflected Port 74d40c7d8fac3ccc263af29c622f4481e18e8c59 to glitch-soc Signed-off-by: Claire --- app/javascript/flavours/glitch/actions/compose.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'app/javascript/flavours/glitch/actions') 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'); } -- cgit