mirror of
https://github.com/Vendicated/Vencord.git
synced 2025-02-25 07:48:32 +00:00
AAGAMING00 SO ANGRY
This commit is contained in:
parent
32c1bd6857
commit
7b30e7e23f
1 changed files with 2 additions and 6 deletions
|
@ -136,7 +136,7 @@ export default definePlugin({
|
|||
getProfileTimezonesComponent: (e: any) => {
|
||||
|
||||
if (!Vencord.Settings.plugins.Timezones.showTimezonesInProfile) {
|
||||
return (<></>);
|
||||
return null;
|
||||
}
|
||||
|
||||
const user = e.user as User;
|
||||
|
@ -147,7 +147,6 @@ export default definePlugin({
|
|||
getUserTimezone(user.id).then(timezone => setTimezone(timezone));
|
||||
}, [user.id]);
|
||||
|
||||
|
||||
return (
|
||||
<span style={{
|
||||
position: "absolute",
|
||||
|
@ -159,15 +158,13 @@ export default definePlugin({
|
|||
border: "4px solid white"
|
||||
}}>
|
||||
{timezone && getTimeString(timezone)}
|
||||
|
||||
</span>
|
||||
|
||||
);
|
||||
}
|
||||
,
|
||||
getTimezonesComponent: (e: any) => {
|
||||
if (Vencord.Settings.plugins.showTimezonesInChat || e.user)
|
||||
return (<></>);
|
||||
return null;
|
||||
|
||||
const message = e.message as Message;
|
||||
|
||||
|
@ -177,7 +174,6 @@ export default definePlugin({
|
|||
getUserTimezone(e.message.author.id).then(timezone => setTimezone(timezone));
|
||||
}, [message.author.id]);
|
||||
|
||||
|
||||
return (
|
||||
<span className={classes(styles.timestampInline, styles.timestamp)}>
|
||||
{timezone && "• " + getTimeString(timezone, message.timestamp)}
|
||||
|
|
Loading…
Add table
Reference in a new issue