Refactor selectComposeSuggestion so that different paths can be updated

This commit is contained in:
Thibaut Girka
2019-04-11 17:07:06 +02:00
committed by ThibG
parent 1c0402c103
commit 3a671470ec
3 changed files with 11 additions and 8 deletions

View File

@ -91,7 +91,7 @@ const mapDispatchToProps = (dispatch, { intl }) => ({
},
onSuggestionSelected(position, token, suggestion) {
dispatch(selectComposeSuggestion(position, token, suggestion));
dispatch(selectComposeSuggestion(position, token, suggestion, ['text']));
},
onChangeSpoilerText(text) {