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:
Shubham Dhama
2019-03-18 15:35:04 +05:30
committed by Tim Abbott
parent 060eacc980
commit 96aac91119

View File

@@ -78,10 +78,10 @@ exports.update_user_data = function (user_id, new_data) {
if (new_data.is_active !== undefined) {
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);
} else {
// Reactivate the bot in the table
// Reactivate the user/bot in the table
update_view_on_reactivate(user_row);
}
}