From 1cbcda1cc7f4a7d0e7d7a8a0915b7975b0108e85 Mon Sep 17 00:00:00 2001 From: Qdust41 Date: Sat, 18 Apr 2026 01:33:11 -0400 Subject: [PATCH] feat: add copy user ID to message author context menu --- src/lib/components/ChatMain.svelte | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/lib/components/ChatMain.svelte b/src/lib/components/ChatMain.svelte index cdd0705..7460932 100644 --- a/src/lib/components/ChatMain.svelte +++ b/src/lib/components/ChatMain.svelte @@ -99,7 +99,10 @@
{ e.stopPropagation(); onShowMenu(e, [{ label: 'Copy username', action: () => navigator.clipboard.writeText(msg.author_username ?? sid(msg.author)) }]); }} + oncontextmenu={(e) => { e.stopPropagation(); onShowMenu(e, [ + { label: 'Copy username', action: () => navigator.clipboard.writeText(msg.author_username ?? sid(msg.author)) }, + { label: 'Copy user ID', action: () => navigator.clipboard.writeText(sid(msg.author)) }, + ]); }} >{msg.author_username ?? sid(msg.author)} {fmt(msg.created)}