[Glitch] Fix being stuck in edit mode when deleting the edited status

Port ebf1d74e40 to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
pull/41/head
Claire 2022-12-15 17:47:43 +01:00
parent d7a6a9393a
commit cdba1ec5f4
1 changed files with 2 additions and 0 deletions

View File

@ -538,6 +538,8 @@ export default function compose(state = initialState, action) {
case TIMELINE_DELETE: case TIMELINE_DELETE:
if (action.id === state.get('in_reply_to')) { if (action.id === state.get('in_reply_to')) {
return state.set('in_reply_to', null); return state.set('in_reply_to', null);
} else if (action.id === state.get('id')) {
return state.set('id', null);
} else { } else {
return state; return state;
} }