From 6e53410e2b7e3de8d82dec1d607a34e796a76e0b Mon Sep 17 00:00:00 2001 From: Eoghan Murray Date: Tue, 28 Jul 2020 15:52:50 +0100 Subject: [PATCH] Reset the `lastPlayedEvent` as it would otherwise be used to discard events in machine.ts as follows: (#250) --- src/replay/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/replay/index.ts b/src/replay/index.ts index f0129b2f..571c4896 100644 --- a/src/replay/index.ts +++ b/src/replay/index.ts @@ -217,6 +217,7 @@ export class Replayer { */ public play(timeOffset = 0) { if (this.service.state.value === 'ended') { + this.service.state.context.lastPlayedEvent = null; this.service.send({ type: 'REPLAY' }); } if (this.service.state.value === 'paused') {