chore: Fix PinDMs patch (#1981)
This commit is contained in:
parent
af614465a4
commit
3ea6a96715
1 changed files with 4 additions and 4 deletions
|
@ -100,10 +100,10 @@ export default definePlugin({
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
// Fix getRowHeight's check for whether this is the DMs section
|
// Fix getRowHeight's check for whether this is the DMs section
|
||||||
// section === DMS
|
// DMS (inlined) === section
|
||||||
match: /===\i\.DMS&&0/,
|
match: /(?<=getRowHeight=\(.{2,50}?)1===\i/,
|
||||||
// section -1 === DMS
|
// DMS (inlined) === section - 1
|
||||||
replace: "-1$&"
|
replace: "$&-1"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
// Override scrollToChannel to properly account for pinned channels
|
// Override scrollToChannel to properly account for pinned channels
|
||||||
|
|
Loading…
Reference in a new issue