SMYN: Fix Crashing
This commit is contained in:
parent
ef71a60208
commit
59e04a82e9
1 changed files with 2 additions and 4 deletions
|
|
@ -1074,8 +1074,6 @@ export default definePlugin({
|
|||
isModified: true,
|
||||
settings,
|
||||
|
||||
UserStore,
|
||||
|
||||
patches: [
|
||||
{
|
||||
find: '="SYSTEM_TAG"',
|
||||
|
|
@ -1130,8 +1128,8 @@ export default definePlugin({
|
|||
// Replace name in solo DM title bar and tooltip.
|
||||
find: "channel.isSystemDM(),",
|
||||
replacement: {
|
||||
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??"
|
||||
match: /(?<=(\i\.\i\.getUser).{650,750}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:$1(arguments[0].channel.recipients[0]),type:\"profilesPopout\"})??null:null,$2smynName??$3smynName??$4smynName??"
|
||||
},
|
||||
},
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue