Re-implemented autosuggestions component for the compose form

Fix #205, fix #156, fix #124
This commit is contained in:
Eugen Rochko 2016-12-14 18:21:31 +01:00
parent 4284093aa3
commit b27066e154
16 changed files with 787 additions and 142 deletions

View file

@ -185,13 +185,14 @@ export function readyComposeSuggestions(token, accounts) {
};
};
export function selectComposeSuggestion(position, accountId) {
export function selectComposeSuggestion(position, token, accountId) {
return (dispatch, getState) => {
const completion = getState().getIn(['accounts', accountId, 'acct']);
dispatch({
type: COMPOSE_SUGGESTION_SELECT,
position,
token,
completion
});
};