diff options
author | Claire <claire.github-309c@sitedethib.com> | 2022-12-15 17:47:43 +0100 |
---|---|---|
committer | Claire <claire.github-309c@sitedethib.com> | 2022-12-15 21:06:00 +0100 |
commit | cdba1ec5f4edd3e3095c161f34f8d1cc3beebaef (patch) | |
tree | 458bf10e898edd9a85b20f4c90bb0e840f09368d /app | |
parent | d7a6a9393a8b4ba3e578bf3ecaa08dd34100e8b8 (diff) |
[Glitch] Fix being stuck in edit mode when deleting the edited status
Port ebf1d74e409ece10864a8615691cd80c434c9055 to glitch-soc Signed-off-by: Claire <claire.github-309c@sitedethib.com>
Diffstat (limited to 'app')
-rw-r--r-- | app/javascript/flavours/glitch/reducers/compose.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/javascript/flavours/glitch/reducers/compose.js b/app/javascript/flavours/glitch/reducers/compose.js index ddc3fa41e..814b6a1a7 100644 --- a/app/javascript/flavours/glitch/reducers/compose.js +++ b/app/javascript/flavours/glitch/reducers/compose.js @@ -538,6 +538,8 @@ export default function compose(state = initialState, action) { case TIMELINE_DELETE: if (action.id === state.get('in_reply_to')) { return state.set('in_reply_to', null); + } else if (action.id === state.get('id')) { + return state.set('id', null); } else { return state; } |