authorgravatar for 56873773+Klemencina@users.noreply.github.comKlemencina <56873773+Klemencina@users.noreply.github.com> 2026-04-09 20:07:53+02:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2026-04-09 18:07:53+00:00
logd9ded65dfef01156056d99dedfe2265d0cb5ea59
tree2e34f03160d2827f51a59037ea968d06f6e11e26
parent2aa73985ea8d13d401ef9063ead4fbb9eaeeab38
signature Signed by PGP key B5690EEEBB952194

fix(desktop): add Copy Link action for chat links (#1835)


1 files changed, 9 insertions(+), 0 deletions(-)

apps/desktop/src/main.ts+9
......@@ -7,6 +7,7 @@ import * as Path from "node:path";
77import {
88 app,
99 BrowserWindow,
10 clipboard,
1011 dialog,
1112 ipcMain,
1213 Menu,
......@@ -1572,6 +1573,14 @@ function createWindow(): BrowserWindow {
15721573 menuTemplate.push({ type: "separator" });
15731574 }
15741575
1576 const externalUrl = getSafeExternalUrl(params.linkURL);
1577 if (externalUrl) {
1578 menuTemplate.push(
1579 { label: "Copy Link", click: () => clipboard.writeText(params.linkURL) },
1580 { type: "separator" },
1581 );
1582 }
1583
15751584 menuTemplate.push(
15761585 { role: "cut", enabled: params.editFlags.canCut },
15771586 { role: "copy", enabled: params.editFlags.canCopy },