Fix being stuck in edit mode when deleting the edited status (#22126)

lolsob-rspec
Claire 2022-12-15 17:47:43 +01:00 committed by GitHub
parent 94d294202b
commit f5d8ba958f
1 changed files with 2 additions and 0 deletions

View File

@ -431,6 +431,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;
}