diff options
author | V <vendicated@riseup.net> | 2023-06-30 15:39:33 +0200 |
---|---|---|
committer | V <vendicated@riseup.net> | 2023-06-30 15:39:33 +0200 |
commit | 13bde79ec8c78a471eb9cf3e6e58f404e8f1bd1f (patch) | |
tree | 97b083f36611449ddc9e273c0702f1edbcc190b0 /src/plugins/pronoundb/pronoundbUtils.ts | |
parent | b592defaaf5f92c942b6c2dc3f39c4761a823ca3 (diff) | |
download | Vencord-13bde79ec8c78a471eb9cf3e6e58f404e8f1bd1f.tar.gz Vencord-13bde79ec8c78a471eb9cf3e6e58f404e8f1bd1f.tar.bz2 Vencord-13bde79ec8c78a471eb9cf3e6e58f404e8f1bd1f.zip |
PronounDB: Fix profile patch, add pronoun source to tooltip
Diffstat (limited to 'src/plugins/pronoundb/pronoundbUtils.ts')
-rw-r--r-- | src/plugins/pronoundb/pronoundbUtils.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/pronoundb/pronoundbUtils.ts b/src/plugins/pronoundb/pronoundbUtils.ts index 63565bb..d47d7d4 100644 --- a/src/plugins/pronoundb/pronoundbUtils.ts +++ b/src/plugins/pronoundb/pronoundbUtils.ts @@ -62,7 +62,7 @@ function getDiscordPronouns(id: string) { ); } -export function useFormattedPronouns(id: string): string | null { +export function useFormattedPronouns(id: string): [string | null, string] { // Discord is so stupid you can put tons of newlines in pronouns const discordPronouns = getDiscordPronouns(id)?.trim().replace(NewLineRe, " "); @@ -72,12 +72,12 @@ export function useFormattedPronouns(id: string): string | null { }); if (settings.store.pronounSource === PronounSource.PreferDiscord && discordPronouns) - return discordPronouns; + return [discordPronouns, "Discord"]; if (result && result !== "unspecified") - return formatPronouns(result); + return [formatPronouns(result), "PronounDB"]; - return discordPronouns; + return [discordPronouns, "Discord"]; } export function useProfilePronouns(id: string) { |