mirror of
https://github.com/MathMan05/Fermi.git
synced 2026-08-21 22:59:55 +00:00
feat: copy group (and individual) DMs channel URL
Signed-off-by: lizzie <lizzie@eden-emu.dev>
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user