typing indicators: Validate PM emails.

This commit is contained in:
Steve Howell 2017-03-22 06:31:44 -07:00
parent 1ec392a18e
commit cde1861655
1 changed files with 8 additions and 0 deletions

View File

@ -52,6 +52,14 @@ function is_valid_conversation(recipient) {
return false;
}
if (compose.get_invalid_recipient_emails().length > 0) {
// If we have invalid recipient emails, it's highly
// likely the user is either still deciding who to
// compose to, or is confused. Also, the server
// will just reject our requests.
return false;
}
return true;
}