linagora / tmail-flutter

A multi-platform (Flutter) application for reading your emails, with your favorite devices, using the JMAP protocol!
GNU Affero General Public License v3.0
327 stars 75 forks source link

Auto complete should rely minimum length to auto completable on the capability object #3226

Open quantranhong1999 opened 1 month ago

quantranhong1999 commented 1 month ago

Currently, it seems frontend hardcode at least 3 input chars to start fire JMAP autocomplete request.

That minimum length should be configurable.

Frontend can rely on backend capability object. Example:

"com:linagora:params:jmap:contact:autocomplete": {
  "minInputLength": 2
}

cf: https://github.com/linagora/tmail-backend/issues/1209

(backend change is implemented and should be included in the next release > 0.11.0)