aboutsummaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
authorRini <rini@rinici.de>2023-09-05 18:51:22 +0000
committerVen <ven@noreply.codeberg.org>2023-09-05 18:51:22 +0000
commit223b0366c642b4b96ace140680565711886414b1 (patch)
tree90f039b8cfaa878534cbfece87bdd80cc4a879eb /src/plugins
parent69cb7593eb30cf0c38df8cf466b9bd478fccaf87 (diff)
downloadVencord-223b0366c642b4b96ace140680565711886414b1.tar.gz
Vencord-223b0366c642b4b96ace140680565711886414b1.tar.bz2
Vencord-223b0366c642b4b96ace140680565711886414b1.zip
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>
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/pinDms/index.tsx10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/plugins/pinDms/index.tsx b/src/plugins/pinDms/index.tsx
index 249dcd2..02fe332 100644
--- a/src/plugins/pinDms/index.tsx
+++ b/src/plugins/pinDms/index.tsx
@@ -122,6 +122,14 @@ export default definePlugin({
// ....concat(pins).concat(toArray(channelIds).filter(c => !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)))"
+ }
+ },
]
});