mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 13:33:24 +00:00
settings_users: Fix misleading comment.
This fixes a misleading comment as we want to change the view for both bots
and users, whose active state is changed.
This commit is contained in:
committed by
Tim Abbott
parent
060eacc980
commit
96aac91119
@@ -78,10 +78,10 @@ exports.update_user_data = function (user_id, new_data) {
|
|||||||
|
|
||||||
if (new_data.is_active !== undefined) {
|
if (new_data.is_active !== undefined) {
|
||||||
if (new_data.is_active === false) {
|
if (new_data.is_active === false) {
|
||||||
// Deactivate the bot in the table
|
// Deactivate the user/bot in the table
|
||||||
update_view_on_deactivate(user_row);
|
update_view_on_deactivate(user_row);
|
||||||
} else {
|
} else {
|
||||||
// Reactivate the bot in the table
|
// Reactivate the user/bot in the table
|
||||||
update_view_on_reactivate(user_row);
|
update_view_on_reactivate(user_row);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user