We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 22698ba commit 4155622Copy full SHA for 4155622
app/soapbox/actions/compose.ts
@@ -153,6 +153,13 @@ const replyCompose = (status: Status) =>
153
154
const compose = (history: History, intl: IntlShape) =>
155
(dispatch: AppDispatch, getState: () => RootState) => {
156
+ // if we were editing a status before, we clear because editing is not a long lasting action
157
+ // we clear existing quote as this is not a long lasting action
158
+ const state = getState();
159
+ if (state.compose.id || state.compose.quote) {
160
+ dispatch(resetCompose());
161
+ }
162
+
163
history.push('/statuses/compose');
164
};
165
0 commit comments