mirror of
https://github.com/zulip/zulip.git
synced 2025-11-12 01:47:41 +00:00
people: Gracefully fail for invalid users in user_is_bot.
Many of these code paths largely expect it to be a valid user ID, so we could raise an exception if the user ID is invalid, but probably gracefully proceeding is reasonable for the callers.
This commit is contained in:
@@ -468,7 +468,7 @@ export function dispatch_normal_event(event) {
|
||||
case "update":
|
||||
user_events.update_person(event.person);
|
||||
settings_account.maybe_update_deactivate_account_button();
|
||||
if (people.user_is_bot(event.person.user_id)) {
|
||||
if (people.is_valid_bot_user(event.person.user_id)) {
|
||||
settings_users.update_bot_data(event.person.user_id);
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user