From c1a8934f6d547ee8b50b7a0ffc693ffde21152ac Mon Sep 17 00:00:00 2001 From: thororen1234 <78185467+thororen1234@users.noreply.github.com> Date: Sat, 5 Oct 2024 17:33:13 -0400 Subject: [PATCH] Fixes --- .../messageLoggerEnhanced/LoggedMessageManager.ts | 4 ++-- src/plugins/_api/serverList.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/equicordplugins/messageLoggerEnhanced/LoggedMessageManager.ts b/src/equicordplugins/messageLoggerEnhanced/LoggedMessageManager.ts index 88bad6d6..8b5127ee 100644 --- a/src/equicordplugins/messageLoggerEnhanced/LoggedMessageManager.ts +++ b/src/equicordplugins/messageLoggerEnhanced/LoggedMessageManager.ts @@ -32,9 +32,9 @@ export const MessageLoggerStore = createStore("MessageLoggerData", "MessageLogge // this gets used by the logs modal. logs modal should only use saved messages not messages that are being processed // also hasMessageInLogs should only check saved messages not the ones that are being processed -export let savedLoggedMessages: LoggedMessages = defaultLoggedMessages; +export let savedLoggedMessages: LoggedMessages = { ...defaultLoggedMessages }; -export let loggedMessages: LoggedMessages = defaultLoggedMessages; +export let loggedMessages: LoggedMessages = { ...defaultLoggedMessages }; (async () => { try { diff --git a/src/plugins/_api/serverList.ts b/src/plugins/_api/serverList.ts index 262def65..7a12a82c 100644 --- a/src/plugins/_api/serverList.ts +++ b/src/plugins/_api/serverList.ts @@ -39,7 +39,7 @@ export default definePlugin({ replace: "Vencord.Api.ServerList.renderAll(Vencord.Api.ServerList.ServerListRenderPosition.In).concat($&)" }, { - match: /guildDiscoveryRef.{0,300}\}\)\]\}\)\}\)/, + match: /lastTargetNode.{0,300}\{\}\)\]\}\)\]/, replace: "$&.concat(Vencord.Api.ServerList.renderAll(Vencord.Api.ServerList.ServerListRenderPosition.Below))" } ]