Skip to content

Commit

Permalink
[278] Send the latest diagram state on subscription
Browse files Browse the repository at this point in the history
Bug: #278
Signed-off-by: Stéphane Bégaudeau <[email protected]>
  • Loading branch information
sbegaudeau committed Feb 1, 2021
1 parent 8e2ee50 commit c67e97e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public class DiagramEventFlux {

private final FluxSink<IPayload> sink;

private final Diagram initialDiagram;
private Diagram initialDiagram;

public DiagramEventFlux(Diagram initialDiagram) {
this.flux = DirectProcessor.create();
Expand All @@ -44,6 +44,7 @@ public DiagramEventFlux(Diagram initialDiagram) {
}

public void diagramRefreshed(Diagram newDiagram) {
this.initialDiagram = newDiagram;
this.sink.next(new DiagramRefreshedEventPayload(newDiagram));
}

Expand Down

0 comments on commit c67e97e

Please sign in to comment.