From e453ad296ff5fed75e5423e2b0b71cbc12fc815a Mon Sep 17 00:00:00 2001 From: Awizz Date: Mon, 2 Mar 2026 20:01:16 +0100 Subject: [PATCH] add DMKeeper plugin (#858) Co-Authored-By: thororen1234 <78185467+thororen1234@users.noreply.github.com> --- src/equicordplugins/dmKeeper/index.ts | 23 +++++++++++++++++++++++ src/utils/constants.ts | 6 +++++- 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 src/equicordplugins/dmKeeper/index.ts diff --git a/src/equicordplugins/dmKeeper/index.ts b/src/equicordplugins/dmKeeper/index.ts new file mode 100644 index 000000000..5ab843aa1 --- /dev/null +++ b/src/equicordplugins/dmKeeper/index.ts @@ -0,0 +1,23 @@ +/* + * Vencord, a Discord client mod + * Copyright (c) 2026 Vendicated and contributors + * SPDX-License-Identifier: GPL-3.0-or-later + */ + +import { EquicordDevs } from "@utils/constants"; +import definePlugin from "@utils/types"; + +export default definePlugin({ + name: "DMKeeper", + description: "Prevents Discord from automatically hiding old DM conversations from your sidebar.", + authors: [EquicordDevs.Awizz], + patches: [ + { + find: "getSortedPrivateChannels(){", + replacement: { + match: /(\i)\.length>(\i)&&(\i)\.shift\(\)/, + replace: "false" + } + } + ], +}); diff --git a/src/utils/constants.ts b/src/utils/constants.ts index e0fef9853..5ae897b51 100644 --- a/src/utils/constants.ts +++ b/src/utils/constants.ts @@ -1263,7 +1263,11 @@ export const EquicordDevs = Object.freeze({ Leon135: { name: "Leon135", id: 309275452231385088n, - } + }, + Awizz: { + name: "Awizz", + id: 1267951485585461288n, + }, } satisfies Record); // iife so #__PURE__ works correctly