diff --git a/bigbluebutton-html5/imports/api/2.0/annotations/server/modifiers/addAnnotation.js b/bigbluebutton-html5/imports/api/2.0/annotations/server/modifiers/addAnnotation.js index 97d05bc1abbc82d171288696a95cc46b10994178..c7eb6bb30901647f06548a46a9649cc1b887ffe2 100644 --- a/bigbluebutton-html5/imports/api/2.0/annotations/server/modifiers/addAnnotation.js +++ b/bigbluebutton-html5/imports/api/2.0/annotations/server/modifiers/addAnnotation.js @@ -4,7 +4,6 @@ import Annotations from '/imports/api/2.0/annotations'; const ANNOTATION_TYPE_TEXT = 'text'; const ANNOTATION_TYPE_PENCIL = 'pencil'; -const PENCIL_CHUNK_SIZE = 100; // line, triangle, ellipse, rectangle function handleCommonAnnotation(meetingId, whiteboardId, userId, annotation) { @@ -63,9 +62,13 @@ function handleTextUpdate(meetingId, whiteboardId, userId, annotation) { function handlePencilUpdate(meetingId, whiteboardId, userId, annotation) { // fetching annotation statuses from the config - const DRAW_START = Meteor.settings.public.whiteboard.annotations.status.start; - const DRAW_UPDATE = Meteor.settings.public.whiteboard.annotations.status.update; - const DRAW_END = Meteor.settings.public.whiteboard.annotations.status.end; + const ANOTATION_STATUSES = Meteor.settings.public.whiteboard.annotations.status; + const DRAW_START = ANOTATION_STATUSES.start; + const DRAW_UPDATE = ANOTATION_STATUSES.update; + const DRAW_END = ANOTATION_STATUSES.end; + + const SERVER_CONFIG = Meteor.settings.app; + const PENCIL_CHUNK_SIZE = SERVER_CONFIG.pencilChunkLength || 100; const { id, status, annotationType, annotationInfo, wbId, position } = annotation; diff --git a/bigbluebutton-html5/private/config/server/app.yaml b/bigbluebutton-html5/private/config/server/app.yaml old mode 100644 new mode 100755 index 83d4aaaec7070c6bd8ff8b210b77c793e7046233..a7517aa7f3198a3194a705705c47ace4d14bf553 --- a/bigbluebutton-html5/private/config/server/app.yaml +++ b/bigbluebutton-html5/private/config/server/app.yaml @@ -1,2 +1,3 @@ app: captionsChunkLength: 1000 + pencilChunkLength: 100 \ No newline at end of file