File tree Expand file tree Collapse file tree 1 file changed +3
-18
lines changed Expand file tree Collapse file tree 1 file changed +3
-18
lines changed Original file line number Diff line number Diff line change @@ -603,8 +603,6 @@ export class ReplayContainer implements ReplayContainerInterface {
603
603
* @hidden
604
604
*/
605
605
public checkAndHandleExpiredSession ( ) : boolean | void {
606
- const oldSessionId = this . getSessionId ( ) ;
607
-
608
606
// Prevent starting a new session if the last user activity is older than
609
607
// SESSION_IDLE_PAUSE_DURATION. Otherwise non-user activity can trigger a new
610
608
// session+recording. This creates noisy replays that do not have much
@@ -626,24 +624,11 @@ export class ReplayContainer implements ReplayContainerInterface {
626
624
// --- There is recent user activity --- //
627
625
// This will create a new session if expired, based on expiry length
628
626
if ( ! this . _checkSession ( ) ) {
629
- return ;
630
- }
631
-
632
- // Session was expired if session ids do not match
633
- const expired = oldSessionId !== this . getSessionId ( ) ;
634
-
635
- if ( ! expired ) {
636
- return true ;
637
- }
638
-
639
- // Session is expired, trigger a full snapshot (which will create a new session)
640
- if ( this . isPaused ( ) ) {
641
- this . resume ( ) ;
642
- } else {
643
- this . _triggerFullSnapshot ( ) ;
627
+ // Check session handles the refreshing itself
628
+ return false ;
644
629
}
645
630
646
- return false ;
631
+ return true ;
647
632
}
648
633
649
634
/**
You can’t perform that action at this time.
0 commit comments