From 66a8eb4854807f5de04334c66348da10c7835344 Mon Sep 17 00:00:00 2001 From: thororen <78185467+thororen1234@users.noreply.github.com> Date: Mon, 6 Oct 2025 16:48:17 -0400 Subject: [PATCH] fix ShowHiddenThings, BetterSessions, ShowTimeoutDuration (#3701) Co-authored-by: Vendicated --- src/plugins/betterSessions/index.tsx | 4 ++-- src/plugins/showHiddenThings/index.ts | 2 +- src/plugins/showTimeoutDuration/index.tsx | 10 +++++----- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/plugins/betterSessions/index.tsx b/src/plugins/betterSessions/index.tsx index 14a25577a..c917d7ce7 100644 --- a/src/plugins/betterSessions/index.tsx +++ b/src/plugins/betterSessions/index.tsx @@ -31,7 +31,7 @@ import { fetchNamesFromDataStore, getDefaultName, GetOsColor, GetPlatformIcon, s const AuthSessionsStore = findStoreLazy("AuthSessionsStore"); const UserSettingsModal = findByPropsLazy("saveAccountChanges", "open"); -const TimestampClasses = findByPropsLazy("timestampTooltip", "blockquoteContainer"); +const TimestampClasses = findByPropsLazy("timestamp", "blockquoteContainer"); const SessionIconClasses = findByPropsLazy("sessionIcon"); const BlobMask = findComponentByCodeLazy("!1,lowerBadgeSize:"); @@ -108,7 +108,7 @@ export default definePlugin({ renderTimestamp: ErrorBoundary.wrap(({ session, timeLabel }: { session: Session, timeLabel: string; }) => { return ( - + {props => ( {timeLabel} diff --git a/src/plugins/showHiddenThings/index.ts b/src/plugins/showHiddenThings/index.ts index 6d2ca7134..318e2bc73 100644 --- a/src/plugins/showHiddenThings/index.ts +++ b/src/plugins/showHiddenThings/index.ts @@ -69,7 +69,7 @@ export default definePlugin({ }, // fixes a bug where Members page must be loaded to see highest role, why is Discord depending on MemberSafetyStore.getEnhancedMember for something that can be obtained here? { - find: "#{intl::GUILD_MEMBER_MOD_VIEW_PERMISSION_GRANTED_BY_ARIA_LABEL}),allowOverflow:", + find: "#{intl::GUILD_MEMBER_MOD_VIEW_HIGHEST_ROLE}),children:", predicate: () => settings.store.showModView, replacement: { match: /(?<=\.highestRole\),)role:\i(?<=\[\i\.roles,\i\.highestRoleId,(\i)\].+)/, diff --git a/src/plugins/showTimeoutDuration/index.tsx b/src/plugins/showTimeoutDuration/index.tsx index 1bd68a0c3..6d13d9fc1 100644 --- a/src/plugins/showTimeoutDuration/index.tsx +++ b/src/plugins/showTimeoutDuration/index.tsx @@ -14,8 +14,8 @@ import { canonicalizeMatch } from "@utils/patches"; import definePlugin, { OptionType } from "@utils/types"; import { Message } from "@vencord/discord-types"; import { findComponentLazy } from "@webpack"; -import { ChannelStore, GuildMemberStore, Text, Tooltip } from "@webpack/common"; -import { FunctionComponent, ReactNode } from "react"; +import { ChannelStore, GuildMemberStore, Text, TooltipContainer } from "@webpack/common"; +import { ReactNode } from "react"; const countDownFilter = canonicalizeMatch("#{intl::MAX_AGE_NEVER}"); const CountDown = findComponentLazy(m => m.prototype?.render?.toString().includes(countDownFilter)); @@ -83,13 +83,13 @@ export default definePlugin({ } ], - TooltipWrapper: ErrorBoundary.wrap(({ message, children, text }: { message: Message; children: FunctionComponent; text: ReactNode; }) => { + TooltipWrapper: ErrorBoundary.wrap(({ message, children, text }: { message: Message; children: ReactNode; text: ReactNode; }) => { if (settings.store.displayStyle === DisplayStyle.Tooltip) - return {children}; + return {children}; return (
- {children} + {children} {renderTimeout(message, true)} timeout remaining