aboutsummaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
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)))"
+ }
+ },
]
});