[Glitch] Fix being stuck in edit mode when deleting the edited status
Port f5d8ba958f
to glitch-soc
Signed-off-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
parent
6e40a09c88
commit
17161bd243
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue