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.
15 lines
500 B
JavaScript
15 lines
500 B
JavaScript
import { check } from 'meteor/check';
|
|
import updateConnectionStatus from '/imports/api/connection-status/server/modifiers/updateConnectionStatus';
|
|
import { extractCredentials } from '/imports/api/common/server/helpers';
|
|
|
|
export default function addConnectionStatus(level) {
|
|
check(level, String);
|
|
|
|
const { meetingId, requesterUserId } = extractCredentials(this.userId);
|
|
|
|
check(meetingId, String);
|
|
check(requesterUserId, String);
|
|
|
|
updateConnectionStatus(meetingId, requesterUserId, level);
|
|
}
|