1.1.2
Some checks failed
Build and Release / build-and-release (push) Has been cancelled

This commit is contained in:
Bryan1029384756
2026-04-17 21:44:01 -05:00
parent a3f6e29d6a
commit ad54f60225
30 changed files with 2517 additions and 475 deletions

View File

@@ -159,6 +159,13 @@ export const getAll = query({
avatarUrl: string | null;
joinSoundUrl: string | null;
watchingStream: string | null;
// Unix ms of when this voiceState row was created — used by the
// sidebar to render the "time in channel" indicator for the
// current user. `_creationTime` is populated by Convex
// automatically on insert, and since the join/move/afk paths
// always delete + insert (never patch across channels) it also
// correctly restarts on a channel hop.
joinedAt: number;
}>> = {};
for (const s of states) {
@@ -183,6 +190,7 @@ export const getAll = query({
avatarUrl,
joinSoundUrl,
watchingStream: s.watchingStream ?? null,
joinedAt: s._creationTime,
});
}