remove unused files
This commit is contained in:
parent
6b13f4fe30
commit
c24b400748
@ -1 +0,0 @@
|
||||
import './methods';
|
@ -1,6 +0,0 @@
|
||||
import { Meteor } from 'meteor/meteor';
|
||||
import publishCursorUpdate from './methods/publishCursorUpdate';
|
||||
|
||||
Meteor.methods({
|
||||
publishCursorUpdate,
|
||||
});
|
@ -1,10 +0,0 @@
|
||||
import RedisPubSub from '/imports/startup/server/redis';
|
||||
import { Meteor } from 'meteor/meteor';
|
||||
|
||||
export default function publishCursorUpdate(meetingId, requesterUserId, payload) {
|
||||
const REDIS_CONFIG = Meteor.settings.private.redis;
|
||||
const CHANNEL = REDIS_CONFIG.channels.toAkkaApps;
|
||||
const EVENT_NAME = 'SendCursorPositionPubMsg';
|
||||
|
||||
return RedisPubSub.publishUserMessage(CHANNEL, EVENT_NAME, meetingId, requesterUserId, payload);
|
||||
}
|
@ -4,10 +4,6 @@ import PollService from '/imports/ui/components/poll/service';
|
||||
import { defineMessages } from 'react-intl';
|
||||
import { notify } from '/imports/ui/services/notification';
|
||||
import caseInsensitiveReducer from '/imports/utils/caseInsensitiveReducer';
|
||||
import { throttle } from '/imports/utils/throttle';
|
||||
import { makeCall } from '/imports/ui/services/api';
|
||||
|
||||
const { cursorInterval: CURSOR_INTERVAL } = window.meetingClientSettings.public.whiteboard;
|
||||
|
||||
const intlMessages = defineMessages({
|
||||
notifyNotAllowedChange: {
|
||||
@ -282,11 +278,6 @@ const formatAnnotations = (annotations, intl, curPageId, currentPresentationPage
|
||||
return result;
|
||||
};
|
||||
|
||||
const publishCursorUpdate = throttle(
|
||||
(payload) => makeCall('publishCursorUpdate', Auth.meetingID, Auth.userID, payload),
|
||||
CURSOR_INTERVAL,
|
||||
);
|
||||
|
||||
export {
|
||||
initDefaultPages,
|
||||
sendAnnotation,
|
||||
@ -296,5 +287,4 @@ export {
|
||||
notifyShapeNumberExceeded,
|
||||
toggleToolsAnimations,
|
||||
formatAnnotations,
|
||||
publishCursorUpdate,
|
||||
};
|
||||
|
@ -3,7 +3,6 @@ import '/imports/startup/server';
|
||||
// 2x
|
||||
import '/imports/api/meetings/server';
|
||||
import '/imports/api/users/server';
|
||||
import '/imports/api/cursor/server';
|
||||
import '/imports/api/polls/server';
|
||||
import '/imports/api/captions/server';
|
||||
import '/imports/api/presentation-upload-token/server';
|
||||
|
Loading…
Reference in New Issue
Block a user