3 var appEvents = require('gitter-web-appevents');
4 var roomService = require('gitter-web-rooms');
7 exports.install = function() {
11 appEvents.onRepoPermissionsChangeDetected(function(data) {
13 var isPrivate = data.isPrivate;
16 roomService.ensureRepoRoomSecurity(uri, 'PRIVATE');
18 roomService.ensureRepoRoomSecurity(uri, 'PUBLIC');