Added back account autofill mention in composer

• Added:
- account autofill mention in composer after removing for performance reasons

• Updated:
- throttle for account search function
This commit is contained in:
Developer 2021-02-10 13:29:48 -05:00
parent 4490070aa2
commit 8b8f73deb1
1 changed files with 1 additions and 3 deletions

View File

@ -537,8 +537,6 @@ const fetchComposeSuggestionsAccounts = throttle((dispatch, getState, token) =>
cancelFetchComposeSuggestionsAccounts()
}
return false
api(getState).get('/api/v1/accounts/search', {
cancelToken: new CancelToken(cancel => {
cancelFetchComposeSuggestionsAccounts = cancel
@ -556,7 +554,7 @@ const fetchComposeSuggestionsAccounts = throttle((dispatch, getState, token) =>
// dispatch(showAlertForError(error))
}
})
}, 200, { leading: true, trailing: true })
}, 1000, { leading: true, trailing: true })
const fetchComposeSuggestionsEmojis = (dispatch, getState, token) => {
const results = emojiSearch(token.replace(':', ''), { maxResults: 5 })