Skip to content
Snippets Groups Projects
Commit 96715d9a authored by Isabelle Knott's avatar Isabelle Knott Committed by Eugen
Browse files

Clear spoiler when replying to toot that doesn't also have a spoiler (#1662)

parent f24daa39
No related branches found
No related tags found
No related merge requests found
......@@ -157,6 +157,9 @@ export default function compose(state = initialState, action) {
if (action.status.get('spoiler_text').length > 0) {
map.set('spoiler', true);
map.set('spoiler_text', action.status.get('spoiler_text'));
} else {
map.set('spoiler', false);
map.set('spoiler_text', '');
}
});
case COMPOSE_REPLY_CANCEL:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment