mirror of
https://github.com/Vendicated/Vencord.git
synced 2025-02-24 07:25:10 +00:00
fix
This commit is contained in:
parent
9b64d9b033
commit
f7e07bb797
1 changed files with 2 additions and 3 deletions
|
@ -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 <LocalTimestamp
|
||||
userId={props.message.author.id}
|
||||
|
|
Loading…
Add table
Reference in a new issue