Skip to content

Commit

Permalink
loadChange in liveBoard serverside now overwrites serverside board wi…
Browse files Browse the repository at this point in the history
…th 'shapes' in received changes
  • Loading branch information
NickLathen committed Oct 28, 2016
1 parent 8abf700 commit 8d3f9aa
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion server/helpers/liveBoard.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,16 @@ const LiveBoard = () => {
this.board.next++;
}.bind(this));
}

if (change.currentShape) {
emitChange.currentShape = change.currentShape;
}
if (change.shapes) {
for (var key in change.shapes) {
const shape = change.shapes[key];
this.board.shapes[key] = shape;
emitChange.shapes[key] = shape;
}
}

emit(emitChange);
},
Expand Down

0 comments on commit 8d3f9aa

Please sign in to comment.