pinDMs: fix alt+shift+up (#25)
applies the same fix as alt+up/down to the jump to unread one confirmed non-explosion of shc Reviewed-on: https://codeberg.org/Ven/cord/pulls/25 Co-authored-by: Rini <rini@rinici.de> Co-committed-by: Rini <rini@rinici.de>
This commit is contained in:
parent
69cb7593eb
commit
223b0366c6
@ -122,6 +122,14 @@ export default definePlugin({
|
|||||||
// ....concat(pins).concat(toArray(channelIds).filter(c => !isPinned(c)))
|
// ....concat(pins).concat(toArray(channelIds).filter(c => !isPinned(c)))
|
||||||
replace: ".concat($self.getSnapshot()).concat($2.filter(c=>!$self.isPinned(c)))"
|
replace: ".concat($self.getSnapshot()).concat($2.filter(c=>!$self.isPinned(c)))"
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
// fix alt+shift+up/down
|
||||||
|
{
|
||||||
|
find: '"alt+shift+down"',
|
||||||
|
replacement: {
|
||||||
|
match: /(?<=return \i===\i\.ME\?)\i\.\i\.getPrivateChannelIds\(\)/,
|
||||||
|
replace: "$self.getSnapshot().concat($&.filter(c=>!$self.isPinned(c)))"
|
||||||
|
}
|
||||||
|
},
|
||||||
]
|
]
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user