Fix sending wrong requests for autocompletion (#414)
The problem was that Tusky kept sending requests for autocompletion while writing toots even when the user wasn't typing a username anymore. As it happened very often we would exceed the API request limit and user wouldn't be able to send the toot. This happened because Tokenizer is not used as expected. In fact, during testing, findTokenEnd() and terminateToken() were never called. I've tried setting a Validator but it wasn't used either. I'm not sure what is the reason. I am afraid it still may work incorrectly for the full nicknames (ones with the instance name, like @name@isntance) because the search may happen for the instance name but it's not as critical.main
parent
10b695fafd
commit
d1d5766ea1
Loading…
Reference in new issue