forked from bigbluebutton/bigbluebutton
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'bigbluebutton/v2.2.x-release' into bigb…
…luebutton/develop
- Loading branch information
Showing
56 changed files
with
472 additions
and
169 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
bigbluebutton-html5/imports/api/users/server/store/bannedUsers.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import Logger from '/imports/startup/server/logger'; | ||
|
||
class BannedUsers { | ||
constructor() { | ||
Logger.debug('BannedUsers :: Initializing'); | ||
this.store = {}; | ||
} | ||
|
||
init(meetingId) { | ||
Logger.debug('BannedUsers :: init', meetingId); | ||
|
||
if (!this.store[meetingId]) this.store[meetingId] = new Set(); | ||
} | ||
|
||
add(meetingId, externalId) { | ||
Logger.debug('BannedUsers :: add', { meetingId, externalId }); | ||
if (!this.store[meetingId]) this.store[meetingId] = new Set(); | ||
|
||
this.store[meetingId].add(externalId); | ||
} | ||
|
||
delete(meetingId) { | ||
Logger.debug('BannedUsers :: delete', meetingId); | ||
delete this.store[meetingId]; | ||
} | ||
|
||
has(meetingId, externalId) { | ||
Logger.debug('BannedUsers :: has', { meetingId, externalId }); | ||
if (!this.store[meetingId]) this.store[meetingId] = new Set(); | ||
|
||
return this.store[meetingId].has(externalId); | ||
} | ||
} | ||
|
||
export default new BannedUsers(); |
14 changes: 14 additions & 0 deletions
14
bigbluebutton-html5/imports/api/video-streams/server/modifiers/clearVideoStreams.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import Logger from '/imports/startup/server/logger'; | ||
import VideoStreams from '/imports/api/video-streams'; | ||
|
||
export default function clearVideoStreams(meetingId) { | ||
if (meetingId) { | ||
return VideoStreams.remove({ meetingId }, () => { | ||
Logger.info(`Cleared VideoStreams in (${meetingId})`); | ||
}); | ||
} | ||
|
||
return VideoStreams.remove({}, () => { | ||
Logger.info('Cleared VideoStreams in all meetings'); | ||
}); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.