From 2e1a0363bdb2939ef6933378b54fe7924d23e417 Mon Sep 17 00:00:00 2001 From: mplorentz Date: Fri, 13 Mar 2026 10:54:19 -0400 Subject: [PATCH] Expect livekit identity not pubkey in 39004 --- src/app/voice.ts | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/app/voice.ts b/src/app/voice.ts index 7c9289b7..3b2893df 100644 --- a/src/app/voice.ts +++ b/src/app/voice.ts @@ -4,7 +4,7 @@ */ import {DisconnectReason, Room, RoomEvent, Track} from "livekit-client" import {derived, get, writable} from "svelte/store" -import {uniqBy} from "@welshman/lib" +import {map, removeUndefined, uniqBy} from "@welshman/lib" import type {TrustedEvent} from "@welshman/util" import {makeHttpAuth, makeHttpAuthHeader, getTags} from "@welshman/util" import {signer} from "@welshman/app" @@ -117,11 +117,12 @@ export const deriveVoiceParticipants = (url: string, h: string) => } else { const latestEvent = $publishedParticipantList as TrustedEvent | undefined if (!latestEvent) return [] - const participants = getTags("participant", latestEvent.tags).map((tag: string[]) => { - const pubkey = tag[1] - const identity = tag[2] ?? pubkey - return pubkey ? {pubkey, identity} : {identity} - }) + const participants = removeUndefined( + map( + (tag: string[]) => (tag[1] ? participantFromLiveKitIdentity(tag[1]) : undefined), + getTags("participant", latestEvent.tags), + ), + ) return uniqBy((p: VoiceParticipant) => participantKey(p), participants) } },