From 3fbc9939500158a6a99dc5bd66a7c85df59466ae Mon Sep 17 00:00:00 2001 From: creations Date: Thu, 29 May 2025 17:12:13 -0400 Subject: [PATCH] add option to hide your own timezone from showing --- src/equicordplugins/timezones/index.tsx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/equicordplugins/timezones/index.tsx b/src/equicordplugins/timezones/index.tsx index 733e694d..9d7070dd 100644 --- a/src/equicordplugins/timezones/index.tsx +++ b/src/equicordplugins/timezones/index.tsx @@ -27,6 +27,12 @@ const classes = findByPropsLazy("timestamp", "compact", "contentOnly"); const locale = findByPropsLazy("getLocale"); export const settings = definePluginSettings({ + "Show Own Timezone": { + type: OptionType.BOOLEAN, + description: "Show your own timezone in profiles and message headers", + default: true + }, + "24h Time": { type: OptionType.BOOLEAN, description: "Show time in 24h format", @@ -250,12 +256,14 @@ export default definePlugin({ renderProfileTimezone: (props?: { user?: User; }) => { if (!settings.store.showProfileTime || !props?.user?.id) return null; + if (props.user.id === UserStore.getCurrentUser().id && !settings.store["Show Own Timezone"]) return null; return ; }, renderMessageTimezone: (props?: { message?: Message; }) => { if (!settings.store.showMessageHeaderTime || !props?.message) return null; + if (props.message.author.id === UserStore.getCurrentUser().id && !settings.store["Show Own Timezone"]) return null; return ; }