{"size": 248, "ext": "js", "max_stars_repo_path": "packages/rocketchat-authorization/client/usersNameChanged.js", "max_stars_repo_name": "okaybroda/Rocket.Chat", "max_stars_repo_stars_event_min_datetime": "2017-12-08T23:08:06.000Z", "max_stars_repo_stars_event_max_datetime": "2018-01-29T00:11:12.000Z", "max_issues_repo_path": "packages/rocketchat-authorization/client/usersNameChanged.js", "max_issues_repo_name": "okaybroda/Rocket.Chat", "max_issues_repo_issues_event_min_datetime": "2018-08-21T09:07:37.000Z", "max_issues_repo_issues_event_max_datetime": "2018-08-21T09:27:27.000Z", "max_forks_repo_path": "packages/rocketchat-authorization/client/usersNameChanged.js", "max_forks_repo_name": "okaybroda/Rocket.Chat", "max_forks_repo_forks_event_min_datetime": "2016-01-07T04:43:35.000Z", "max_forks_repo_forks_event_max_datetime": "2018-07-28T20:45:38.000Z"}
{"max_stars_count": 7, "max_issues_count": 4, "max_forks_count": 4, "avg_line_length": 16.5333333333, "max_line_length": 79, "alphanum_fraction": 0.5725806452}
/* globals RoomRoles */
Meteor.startup(function() {
	RocketChat.Notifications.onLogged('Users:NameChanged', function({_id, name}) {
		RoomRoles.update({
			'u._id': _id
		}, {
			$set: {
				'u.name': name
			}
		}, {
			multi: true
		});
	});
});
