feat: copy group (and individual) DMs channel URL

Signed-off-by: lizzie <lizzie@eden-emu.dev>
This commit is contained in:
lizzie
2026-08-01 09:42:15 +00:00
parent 4a8e9c7b1e
commit daf613398a
2 changed files with 10 additions and 1 deletions
+9 -1
View File
@@ -492,7 +492,15 @@ class Group extends Channel {
);
this.groupcontextmenu.addSeperator(undefined, "dm");
this.groupcontextmenu.addButton(
I18n.DMs.copyURL(),
function (this: Group) {
navigator.clipboard.writeText(`${location.origin}/channels/@me/${this.id}`);
},
{
group: "id",
},
);
this.groupcontextmenu.addButton(
() => I18n.DMs.copyId(),
function (this: Group) {
+1
View File
@@ -39,6 +39,7 @@
"DMs": {
"add": "Add someone to this DM",
"close": "Close DM",
"copyURL":"Copy DM URL",
"copyId": "Copy DM id",
"markRead": "Mark as read",
"name": "Direct Messages"