fixed the issue of not opening the correct number of additional notes when requested

This commit is contained in:
Felipe Cecagno 2015-01-26 13:25:09 -02:00
parent d76337fe6a
commit ecb4f82dd7
3 changed files with 3 additions and 3 deletions

View File

@ -69,7 +69,7 @@ trait SharedNotesApp {
def handleRequestAdditionalNotesSetRequest(msg: RequestAdditionalNotesSetRequest) {
notes.synchronized {
var num = msg.additionalNotesSetSize - notes.size
var num = msg.additionalNotesSetSize - notes.size + 1
for (i <- 1 to num) {
createAdditionalNotesNonSync(msg.requesterID)
}

View File

@ -244,6 +244,7 @@ package org.bigbluebutton.modules.layout.managers
if (layout != null) {
layout.applyToCanvas(_canvas);
dispatchSwitchedLayoutEvent(layout.name);
UserManager.getInstance().getConference().numAdditionalSharedNotes = layout.numAdditionalSharedNotes;
}
updateCurrentLayout(layout);
@ -262,7 +263,6 @@ package org.bigbluebutton.modules.layout.managers
public function applyRemoteLayout(e:LayoutFromRemoteEvent):void {
var layout:LayoutDefinition = e.layout;
UserManager.getInstance().getConference().numAdditionalSharedNotes = layout.numAdditionalSharedNotes;
applyLayout(layout);
}

View File

@ -82,7 +82,7 @@ package org.bigbluebutton.modules.sharednotes.services
}
private function handleCreateAdditionalNotesCommand(message:Object):void {
trace(LOG + "Handling private chat message [" + message + "]");
trace(LOG + "Handling create additional notes message [" + message + "]");
var e:SharedNotesEvent = new SharedNotesEvent(SharedNotesEvent.CREATE_ADDITIONAL_NOTES_REPLY_EVENT);
e.payload.notesId = message.noteID;