SMYN: Fix Patch. (#1218)

This commit is contained in:
Etorix 2026-07-02 08:54:04 -07:00 • committed by GitHub
parent 663675d830
commit de485f8f98
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1132,7 +1132,7 @@ export default definePlugin({
// Replace name in solo DM title bar and tooltip.
find: "channel.isSystemDM(),",
replacement: {
match: /(?<=length>0,)(\i=)(.{0,280}?"aria-label":)(\i.\i.getName\(\i\).{0,400}?text:)/,
match: /(?<=length>0,\i=\i&&null!=\i&&!\i,)(\i=)(.{0,125}?"aria-label":)(\i.\i.getName\(\i\).{0,1700}?text:)(?=\i,position)/,
replace: "smynName=arguments[0].channel.recipients.length===1?$self.getTypingMemberListProfilesReactionsVoiceNameText({user:$self.UserStore.getUser(arguments[0].channel.recipients[0]),type:\"profilesPopout\"})??null:null,$1smynName??$2smynName??$3smynName??"
},
},