mirror of
https://github.com/cheeaun/phanpy.git
synced 2024-11-26 19:25:47 +03:00
Need to save status after edit
Before this, the status (and context) will auto-refresh after posting, but now it's only refreshing context
This commit is contained in:
parent
14c994c7ba
commit
8b77615c80
1 changed files with 4 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue