From f7e07bb797efab54b9a010e0356f4f7a31fd8ae5 Mon Sep 17 00:00:00 2001 From: rushiiMachine <33725716+rushiiMachine@users.noreply.github.com> Date: Sun, 23 Jun 2024 22:57:30 -0700 Subject: [PATCH] fix --- src/plugins/timezones/index.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/plugins/timezones/index.tsx b/src/plugins/timezones/index.tsx index ad9c5d935..fa12b5bf0 100644 --- a/src/plugins/timezones/index.tsx +++ b/src/plugins/timezones/index.tsx @@ -40,9 +40,8 @@ export default definePlugin({ }, })), { - find: "\"Message Username\"", + find: '"Message Username"', replacement: { - // thanks https://github.com/Syncxv/vc-timezones/pull/4 match: /(?<=isVisibleOnlyOnHover.+?)id:.{1,11},timestamp.{1,50}}\),/, replace: "$&,$self.renderMessageTimezone(arguments[0]),", }, @@ -60,7 +59,7 @@ export default definePlugin({ renderMessageTimezone: (props?: { message?: Message; }) => { if (!settings.store.displayInChat || !props?.message) return null; - if (UserStore.getCurrentUser().id === props?.message?.id) return null; + if (UserStore.getCurrentUser().id === props.message.author.id) return null; return