From 8b77615c802ec4a43495069be8cd2ffe866c5934 Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Fri, 10 Feb 2023 11:35:47 +0800 Subject: [PATCH] Need to save status after edit Before this, the status (and context) will auto-refresh after posting, but now it's only refreshing context --- src/components/compose.jsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/compose.jsx b/src/components/compose.jsx index 8960784d..c8a2bd7c 100644 --- a/src/components/compose.jsx +++ b/src/components/compose.jsx @@ -16,7 +16,7 @@ import { api } from '../utils/api'; import db from '../utils/db'; import emojifyText from '../utils/emojify-text'; import openCompose from '../utils/open-compose'; -import states from '../utils/states'; +import states, { saveStatus } from '../utils/states'; import store from '../utils/store'; import { getCurrentAccount, getCurrentAccountNS } from '../utils/store-utils'; import useInterval from '../utils/useInterval'; @@ -785,6 +785,9 @@ function Compose({ editStatus.id, params, ); + saveStatus(newStatus, { + skipThreading: true, + }); } else { newStatus = await masto.v1.statuses.create(params, { idempotencyKey: UID.current,