fix: don't show seen by authed user

This commit is contained in:
talksik
2026-03-21 11:46:26 -07:00
parent 4edb6c853a
commit 44f4dc772a
+2 -1
View File
@@ -503,11 +503,12 @@ function ParticleBreadcrumbContent({ particle }: { particle: Particle }) {
// Shows a list of avatars of users who have seen the current particle, based on playback markers in the stream particle.
const SeenIndicator = ({ stream, currentParticle, networkId }: { stream: Particle & { type: "stream" }, currentParticle: Particle, networkId: string }) => {
const authedUser = useAuthStore((s) => s.user);
const network = useNetwork(networkId);
const playbackMarkers = stream.playback_markers ?? {};
const seenUserIds = Object.entries(playbackMarkers)
.filter(([_, timestamp]) => timestamp.getTime() >= currentParticle.created_at.getTime())
.filter(([userId, timestamp]) => timestamp.getTime() >= currentParticle.created_at.getTime() && userId !== authedUser?.id)
.map(([userId, _]) => userId);
const seenUserEmails = seenUserIds