From e42875d19566ee95195ae050ac4471711c442136 Mon Sep 17 00:00:00 2001 From: Claire Date: Wed, 2 Nov 2022 18:09:39 +0100 Subject: [PATCH] [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(-) diff --git a/app/javascript/flavours/glitch/actions/compose.js b/app/javascript/flavours/glitch/actions/compose.js index 15476fc590..54909b56e4 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'); }