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,
replacement: [
"canUseHighVideoUploadQuality",
// TODO: Remove the last two when they get removed from stable
"(?:canStreamQuality|canStreamHighQuality|canStreamMidQuality)",
"canStreamQuality",
].map(func => {
return {
match: new RegExp(`${func}:function\\(\\i(?:,\\i)?\\){`, "g"),

View file

@ -68,8 +68,7 @@ export default definePlugin({
find: ".USER_PROFILE_ACTIVITY",
replacement: [
{
/* FIXME: old name is getGlobalName, new name is getName. Remove optional Global once stable has also migrated */
match: /\.get(?:Global)?Name\(\i\);(?<=displayProfile.{0,200})/,
match: /\.getName\(\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;"
},
PRONOUN_TOOLTIP_PATCH