Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/improsocial/impro
An extensible Bluesky client for web impro.social
Something went wrong. Try again.
JavaScript
12345678910111213141516171819202122232425import "/js/components/live-status-dialog.js";
export class LiveStatusService { constructor(dataLayer) { this.dataLayer = dataLayer; }
handleAvatarClick(did) { const liveStatus = this.dataLayer.derived.$actorLiveStatus.get(did); if (liveStatus?.state !== "active") return; const profile = this.dataLayer.derived.$hydratedProfiles.get(did) ?? this.dataLayer.derived.$hydratedDetailedProfiles.get(did); if (!profile) return; const dialog = document.createElement("live-status-dialog"); dialog.profile = profile; dialog.liveStatus = liveStatus; dialog.addEventListener("close", () => { dialog.remove(); }); document.body.appendChild(dialog); dialog.open(); }}