Skip to content

Commit

Permalink
feat(replay): Cleanup viewed-by feature flag (frontend) (#69152)
Browse files Browse the repository at this point in the history
Flag is here and released to 100% already:
https://flagr.getsentry.net/#/flags/601

Relates to getsentry/team-replay#19
Relates to #64924
  • Loading branch information
ryan953 authored Apr 17, 2024
1 parent 3243b13 commit ea98901
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,6 @@ function ReplayPreviewPlayer({

const {mutate: markAsViewed} = useMarkReplayViewed();
useEffect(() => {
if (!organization.features.includes('session-replay-viewed-by-ui')) {
return;
}
if (replayRecord && !replayRecord.has_viewed && !isFetching && isPlaying) {
markAsViewed({projectSlug: replayRecord.project_id, replayId: replayRecord.id});
}
Expand Down
3 changes: 0 additions & 3 deletions static/app/views/replays/details.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,6 @@ function ReplayDetails({params: {replaySlug}}: Props) {

const {mutate: markAsViewed} = useMarkReplayViewed();
useEffect(() => {
if (!organization.features.includes('session-replay-viewed-by-ui')) {
return;
}
if (
!fetchError &&
replayRecord &&
Expand Down

0 comments on commit ea98901

Please sign in to comment.