mirror of
https://github.com/zulip/zulip.git
synced 2025-11-07 23:43:43 +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:
@@ -148,7 +148,7 @@ export const update_person = function update(person) {
|
||||
buddy_list.maybe_remove_user_id({user_id: person.user_id});
|
||||
}
|
||||
settings_account.maybe_update_deactivate_account_button();
|
||||
if (people.user_is_bot(person.user_id)) {
|
||||
if (people.is_valid_bot_user(person.user_id)) {
|
||||
settings_users.update_bot_data(person.user_id);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user