feat: playback where I left off

This commit is contained in:
talksik
2026-03-19 11:24:41 -07:00
parent 71dd0149bc
commit c43f66d915
5 changed files with 71 additions and 32 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
import { useMutation } from "@tanstack/react-query";
import { createParticle, updateStreamParticleLastChildParticle } from "@/lib/firestore-particles";
import { createParticle, updateStreamLastChildAt } from "@/lib/firestore-particles";
import type { ParticleType, ParticlePropertiesMap } from "@/api/types";
import { particlePath, ParticlePath, toFirestoreChildrenPath, toFirestoreDocPath } from "@/lib/particle-path";
@@ -23,7 +23,7 @@ export function useCreateParticle() {
);
const streamDocPath = toFirestoreDocPath(params.path);
await updateStreamParticleLastChildParticle(streamDocPath);
await updateStreamLastChildAt(streamDocPath);
return result;
}
});