From bb87342b7ec786d69462a5f3555174264dcbac52 Mon Sep 17 00:00:00 2001 From: Mathium05 Date: Mon, 27 Jul 2026 21:41:08 -0500 Subject: [PATCH] mute DMs --- src/webpage/direct.ts | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/src/webpage/direct.ts b/src/webpage/direct.ts index edc4be5..794bb95 100644 --- a/src/webpage/direct.ts +++ b/src/webpage/direct.ts @@ -466,6 +466,30 @@ class Group extends Channel { group: "dm", }, ); + this.groupcontextmenu.addButton( + () => I18n.channel.mute(), + function () { + this.muteChannel(); + }, + { + visible: function () { + return !this.muted && this.type !== 4; + }, + group: "dm", + }, + ); + this.groupcontextmenu.addButton( + () => I18n.channel.unmute(), + function () { + this.unmuteChannel(); + }, + { + visible: function () { + return this.muted; + }, + group: "dm", + }, + ); this.groupcontextmenu.addSeperator(undefined, "dm");