fixed the issue of not opening the correct number of additional notes when requested
This commit is contained in:
parent
d76337fe6a
commit
ecb4f82dd7
@ -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)
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user