mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-24 03:19:06 +00:00

======== https://hg.mozilla.org/integration/gaia-central/rev/a2118125f58d Author: Julien Wajsberg <felash@gmail.com> Desc: Merge pull request #12629 from rwaldron/920546 Bug 920546 - [Messages] Short-term fixes for the recipient panel ======== https://hg.mozilla.org/integration/gaia-central/rev/92bfa656e0fa Author: Rick Waldron <waldron.rick@gmail.com> Desc: Bug 920546 - [Messages] Short-term fixes for the recipient panel r=julienw https://bugzilla.mozilla.org/show_bug.cgi?id=920546 - Apply new "invalid recipient" indicator style - Decouple searchContact from list display - Create ThreadUI.listContact(...) - Create ThreadUI.validateContact(...) - Adds two level validation: - Is the entry questionable? - This kicks off a silent search for matching contacts - If there are one or more matches, use the first to create a Recipient - Is the entry invalid? - This state is reached if no contacts could be found for the typed value. - Prevents enableSend - Prevents "export" of recipient entry at Send (when mixed with multiple valid recipients) - Refactor Utils.getContactDisplayInfo logic - Adds tests for enableSend - Adds tests for questionable Recipient detection. Cases covered: https://bugzilla.mozilla.org/show_bug.cgi?id=920546#c48 Signed-off-by: Rick Waldron <waldron.rick@gmail.com>