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