fix(MessageLinkEmbeds): Actually disable when disabled (#2323)

main
Kyuuhachi 7 months ago committed by GitHub
parent 88f353e7f6
commit 18d4780635
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -16,7 +16,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>. * along with this program. If not, see <https://www.gnu.org/licenses/>.
*/ */
import { addAccessory } from "@api/MessageAccessories"; import { addAccessory, removeAccessory } from "@api/MessageAccessories";
import { definePluginSettings } from "@api/Settings"; import { definePluginSettings } from "@api/Settings";
import ErrorBoundary from "@components/ErrorBoundary"; import ErrorBoundary from "@components/ErrorBoundary";
import { Devs } from "@utils/constants.js"; import { Devs } from "@utils/constants.js";
@ -389,4 +389,8 @@ export default definePlugin({
); );
}, 4 /* just above rich embeds */); }, 4 /* just above rich embeds */);
}, },
stop() {
removeAccessory("messageLinkEmbed");
}
}); });

Loading…
Cancel
Save