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");