From 82bc3356ea3e2b80bf29cbd9e148c911feb8b053 Mon Sep 17 00:00:00 2001 From: thororen1234 <78185467+thororen1234@users.noreply.github.com> Date: Sat, 11 Jul 2026 14:31:23 -0400 Subject: [PATCH] Timezones: something something isdm --- src/equicordplugins/timezones/index.tsx | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/equicordplugins/timezones/index.tsx b/src/equicordplugins/timezones/index.tsx index d1b9ae550..de43c8449 100644 --- a/src/equicordplugins/timezones/index.tsx +++ b/src/equicordplugins/timezones/index.tsx @@ -364,10 +364,14 @@ export default definePlugin({ let userId = props.message.author.id; if (userId === UserStore.getCurrentUser().id) { - if (!showOwnTimezone && !recipientTimezoneInDms) return null; - const channel = ChannelStore.getChannel(props.message.channel_id); - if (recipientTimezoneInDms) userId = channel?.getRecipientId() ?? userId; + const recipientId = channel?.isDM() ? channel.getRecipientId() : null; + + if (recipientTimezoneInDms && recipientId) { + userId = recipientId; + } else if (!showOwnTimezone) { + return null; + } } return ;