From 70cc39e5611ffb98ebc92e4cbf11b5bb5e6e0e38 Mon Sep 17 00:00:00 2001 From: Bradley Axen Date: Fri, 8 May 2026 14:45:57 -0700 Subject: [PATCH] Show channel IDs in channel settings --- .../channels/ui/ChannelManagementSheet.tsx | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/desktop/src/features/channels/ui/ChannelManagementSheet.tsx b/desktop/src/features/channels/ui/ChannelManagementSheet.tsx index e2cf3e29f..db9385c17 100644 --- a/desktop/src/features/channels/ui/ChannelManagementSheet.tsx +++ b/desktop/src/features/channels/ui/ChannelManagementSheet.tsx @@ -1,6 +1,7 @@ import { Archive, ArchiveRestore, + Copy, DoorClosed, DoorOpen, FileText, @@ -11,6 +12,7 @@ import { Zap, } from "lucide-react"; import * as React from "react"; +import { toast } from "sonner"; import { useArchiveChannelMutation, @@ -73,6 +75,35 @@ function MetadataPill({ ); } +function ChannelIdRow({ channelId }: { channelId: string }) { + async function handleCopyChannelId() { + await navigator.clipboard.writeText(channelId); + toast.success("Copied channel ID to clipboard"); + } + + return ( + + ); +} + export function ChannelManagementSheet({ channel, currentPubkey, @@ -221,6 +252,7 @@ export function ChannelManagementSheet({
+ {detailsQuery.error instanceof Error ? (

{detailsQuery.error.message}