Add suggestions in CW field

This commit is contained in:
Thibaut Girka
2019-04-11 17:18:55 +02:00
committed by ThibG
parent 3a671470ec
commit df52004fe6
4 changed files with 260 additions and 21 deletions

View File

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