Skip to content

Commit 9014dbc

Browse files
committed
remove dupe segment 0 check
1 parent e791ff4 commit 9014dbc

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

packages/replay-internal/src/util/handleRecordingEmit.ts

+3-4
Original file line numberDiff line numberDiff line change
@@ -65,13 +65,12 @@ export function getHandleRecordingEmit(replay: ReplayContainer): RecordingEmitCa
6565
// In order to handle buffer mode, this needs to either be done when we
6666
// receive checkout events or at flush time. We have an experimental mode
6767
// to perform multiple checkouts a session (the idea is to improve
68-
// seeking during playback), so also only include if segmentId is 0.
68+
// seeking during playback), so also only include if segmentId is 0
69+
// (handled in `addSettingsEvent`).
6970
//
7071
// `isCheckout` is always true, but want to be explicit that it should
7172
// only be added for checkouts
72-
if (session && session.segmentId === 0) {
73-
addSettingsEvent(replay, isCheckout);
74-
}
73+
addSettingsEvent(replay, isCheckout);
7574

7675
// If there is a previousSessionId after a full snapshot occurs, then
7776
// the replay session was started due to session expiration. The new session

0 commit comments

Comments
 (0)