1
0
Fork 1
mirror of https://github.com/Vendicated/Vencord.git synced 2025-01-10 18:06:22 +00:00

chore: Fix PinDMs patch (#1981)

This commit is contained in:
Jack 2023-11-15 13:01:50 -05:00 committed by Luna
parent 5b43fa76ea
commit 0906e4a3f1

View file

@ -100,10 +100,10 @@ export default definePlugin({
},
{
// Fix getRowHeight's check for whether this is the DMs section
// section === DMS
match: /===\i\.DMS&&0/,
// section -1 === DMS
replace: "-1$&"
// DMS (inlined) === section
match: /(?<=getRowHeight=\(.{2,50}?)1===\i/,
// DMS (inlined) === section - 1
replace: "$&-1"
},
{
// Override scrollToChannel to properly account for pinned channels