We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce189f6 commit c3faa0cCopy full SHA for c3faa0c
packages/replay-internal/src/util/addGlobalListeners.ts
@@ -62,14 +62,14 @@ export function addGlobalListeners(replay: ReplayContainer): void {
62
if (options?.includeReplay && replay.isEnabled() && replayId && feedbackEvent.contexts?.feedback) {
63
// In case the feedback is sent via API and not through our widget, we want to flush replay
64
if (feedbackEvent.contexts.feedback.source === 'api') {
65
- await replay.flush();
+ await replay.sendBufferedReplayOrFlush();
66
}
67
feedbackEvent.contexts.feedback.replay_id = replayId;
68
69
});
70
71
client.on('openFeedbackWidget', async () => {
72
73
74
75
0 commit comments