mirror of
https://github.com/zulip/zulip.git
synced 2025-11-15 03:11:54 +00:00
frontend: Add event handling for user status.
The UI part of this commit isn't really turned on yet, but it works in theory.
This commit is contained in:
@@ -455,7 +455,16 @@ exports.dispatch_normal_event = function dispatch_normal_event(event) {
|
||||
}
|
||||
settings_user_groups.reload();
|
||||
break;
|
||||
|
||||
case 'user_status':
|
||||
if (event.away) {
|
||||
activity.on_set_away(event.user_id);
|
||||
} else {
|
||||
activity.on_revoke_away(event.user_id);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
return exports;
|
||||
|
||||
Reference in New Issue
Block a user