Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

feat(web): parse recordingStopped from share page URL

Richie McIlroy5c15c50f2a05
diff --git a/apps/web/app/s/[videoId]/page.tsx b/apps/web/app/s/[videoId]/page.tsx
index 707965182..54f88b547 100644
--- a/apps/web/app/s/[videoId]/page.tsx
+++ b/apps/web/app/s/[videoId]/page.tsx
@@ -494,6 +494,11 @@ async function AuthorizedContent({
const replyId = optionFromTOrFirst(searchParams.reply).pipe(
Option.map(Comment.CommentId.make),
);
+ const recordingStoppedParam = Array.isArray(searchParams.recordingStopped)
+ ? searchParams.recordingStopped[0]
+ : searchParams.recordingStopped;
+ const recordingStopped =
+ recordingStoppedParam === "1" || recordingStoppedParam === "true";
// Fetch spaces data for the sharing dialog
let spacesData = null;
@@ -824,6 +829,7 @@ async function AuthorizedContent({
userOrganizations={userOrganizations}
viewerId={user?.id ?? null}
isEditProcessing={isEditProcessing}
+ recordingStopped={recordingStopped}
initialAiData={initialAiData}
aiGenerationEnabled={aiGenerationEnabled}
/>