chore: remove legacy code

This commit is contained in:
Vendicated 2023-10-06 18:01:19 +02:00
parent 47a39a062e
commit df214e1e93
No known key found for this signature in database
GPG key ID: D66986BAF75ECF18
2 changed files with 2 additions and 4 deletions

View file

@ -222,8 +222,7 @@ export default definePlugin({
predicate: () => settings.store.enableStreamQualityBypass, predicate: () => settings.store.enableStreamQualityBypass,
replacement: [ replacement: [
"canUseHighVideoUploadQuality", "canUseHighVideoUploadQuality",
// TODO: Remove the last two when they get removed from stable "canStreamQuality",
"(?:canStreamQuality|canStreamHighQuality|canStreamMidQuality)",
].map(func => { ].map(func => {
return { return {
match: new RegExp(`${func}:function\\(\\i(?:,\\i)?\\){`, "g"), match: new RegExp(`${func}:function\\(\\i(?:,\\i)?\\){`, "g"),

View file

@ -68,8 +68,7 @@ export default definePlugin({
find: ".USER_PROFILE_ACTIVITY", find: ".USER_PROFILE_ACTIVITY",
replacement: [ replacement: [
{ {
/* FIXME: old name is getGlobalName, new name is getName. Remove optional Global once stable has also migrated */ match: /\.getName\(\i\);(?<=displayProfile.{0,200})/,
match: /\.get(?:Global)?Name\(\i\);(?<=displayProfile.{0,200})/,
replace: "$&const [vcPronounce,vcPronounSource]=$self.useProfilePronouns(arguments[0].user.id,true);if(arguments[0].displayProfile&&vcPronounce)arguments[0].displayProfile.pronouns=vcPronounce;" replace: "$&const [vcPronounce,vcPronounSource]=$self.useProfilePronouns(arguments[0].user.id,true);if(arguments[0].displayProfile&&vcPronounce)arguments[0].displayProfile.pronouns=vcPronounce;"
}, },
PRONOUN_TOOLTIP_PATCH PRONOUN_TOOLTIP_PATCH