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:
Steve Howell
2018-12-19 17:41:47 +00:00
committed by Tim Abbott
parent d8d703af45
commit 4fed3d2014
4 changed files with 57 additions and 0 deletions

View File

@@ -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;