mirror of
https://github.com/zulip/zulip.git
synced 2025-11-14 19:06:09 +00:00
typing indicators: Validate PM emails.
This commit is contained in:
@@ -52,6 +52,14 @@ function is_valid_conversation(recipient) {
|
|||||||
return false;
|
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;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user