280b32d21d
- Removed the connection-status history from the user list's gear icon and now is opened by the connection-status button. Moderators will render the same modal as before and viewers will only have access to their own data. - Added data-savings shortcut at the connection-status modal. - Added websocket round-trip time.
27 lines
680 B
JavaScript
27 lines
680 B
JavaScript
import ConnectionStatus from '/imports/api/connection-status';
|
|
import Logger from '/imports/startup/server/logger';
|
|
|
|
export default function clearConnectionStatus(meetingId) {
|
|
const selector = {};
|
|
|
|
if (meetingId) {
|
|
selector.meetingId = meetingId;
|
|
}
|
|
|
|
try {
|
|
const numberAffected = ConnectionStatus.remove(selector);
|
|
|
|
if (numberAffected) {
|
|
if (meetingId) {
|
|
Logger.info(`Removed ConnectionStatus (${meetingId})`);
|
|
} else {
|
|
Logger.info('Removed ConnectionStatus (all)');
|
|
}
|
|
} else {
|
|
Logger.warn('Removing ConnectionStatus nonaffected');
|
|
}
|
|
} catch (err) {
|
|
Logger.error(`Removing ConnectionStatus: ${err}`);
|
|
}
|
|
}
|