mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-01-15 04:03:06 -05:00
[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>
This commit is contained in:
parent
d7a6a9393a
commit
cdba1ec5f4
@ -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…
x
Reference in New Issue
Block a user