Send dicts for cross realm users to JS.

We now send dictionaries for cross-realm bots.  This led to the
following changes:

* Create get_cross_realm_dicts() in actions.py.
* Rename the page_params field to cross_realm_bots.
* Fix some back end tests.
* Add cross_realm_dict to people.js.
* Call people.add for cross-realm bots (if they are not already part of the realm).
* Remove hack to add in feedback@zulip.com on the client side.
* Add people.is_cross_realm_email() and use it in compose.js.
* Remove util.string_in_list_case_insensitive().
This commit is contained in:
Steve Howell
2016-11-02 15:48:47 -07:00
committed by Tim Abbott
parent af6512e782
commit 9b04ec7472
7 changed files with 51 additions and 22 deletions

View File

@@ -846,7 +846,7 @@ function validate_private_message() {
if (people.realm_get(email) !== undefined) {
return;
}
if (util.string_in_list_case_insensitive(email, page_params.cross_realm_user_emails)) {
if (people.is_cross_realm_email(email)) {
return;
}
invalid_recipients.push(email);