a commit name

This commit is contained in:
ArjixWasTaken 2023-02-19 17:02:51 +02:00
parent d4a2be6e52
commit 8c589a1519

View file

@ -326,11 +326,10 @@ export default definePlugin({
);
}
,
getTimezonesComponent: (e: any) => {
if (Vencord.Settings.plugins.showTimezonesInChat || e.user || e.message.author.id === UserStore.getCurrentUser().id)
return null;
const message = e.message as Message;
getTimezonesComponent: ({ message, user }: { message: Message, user: any; }) => {
if (Vencord.Settings.plugins.showTimezonesInChat || user || message.author.id === UserStore.getCurrentUser().id)
return null;
const [timezone, setTimezone] = React.useState<string | undefined>();