aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/pinDms/index.tsx
diff options
context:
space:
mode:
authorV <vendicated@riseup.net>2023-04-22 03:17:00 +0200
committerGitHub <noreply@github.com>2023-04-22 03:17:00 +0200
commitc6f0c84935db37e2a18578a081404d84292fe36a (patch)
tree0cc633732cc8a0221813d8d4a40d2a435747cc69 /src/plugins/pinDms/index.tsx
parenta8d017811de99b83b15df769fdec35309bf78104 (diff)
downloadVencord-c6f0c84935db37e2a18578a081404d84292fe36a.tar.gz
Vencord-c6f0c84935db37e2a18578a081404d84292fe36a.tar.bz2
Vencord-c6f0c84935db37e2a18578a081404d84292fe36a.zip
PinDMs: Fix alt up/down being weird (#957)
Diffstat (limited to 'src/plugins/pinDms/index.tsx')
-rw-r--r--src/plugins/pinDms/index.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/pinDms/index.tsx b/src/plugins/pinDms/index.tsx
index a7f35a2..249dcd2 100644
--- a/src/plugins/pinDms/index.tsx
+++ b/src/plugins/pinDms/index.tsx
@@ -21,7 +21,7 @@ import definePlugin from "@utils/types";
import { Channel } from "discord-types/general";
import { addContextMenus, removeContextMenus } from "./contextMenus";
-import { getPinAt, isPinned, settings, snapshotArray, usePinnedDms } from "./settings";
+import { getPinAt, isPinned, settings, snapshotArray, sortedSnapshot, usePinnedDms } from "./settings";
export default definePlugin({
name: "PinDMs",
@@ -44,7 +44,7 @@ export default definePlugin({
},
isPinned,
- getSnapshot: () => snapshotArray,
+ getSnapshot: sortedSnapshot,
getScrollOffset(channelId: string, rowHeight: number, padding: number, preRenderedChildren: number, originalOffset: number) {
if (!isPinned(channelId))