This commit is contained in:
Timothy Jaeryang Baek committed 2025-12-02 02:53:49 -05:00
1 parent 4f50571b53
commit 734c04ebf0
3 files changed
+11 -31

No files matched your search

+3 -10
View File
@@ -183,16 +183,9 @@
const initChannels = async () => {
// default (none), group, dm type
await channels.set(
(await getChannels(localStorage.token)).sort((a, b) =>
a.type === b.type
? 0
: a.type === 'dm'
? 1
: a.type === 'group'
? b.type === 'dm'
? -1
: 0
: -1
(await getChannels(localStorage.token)).sort(
(a, b) =>
['', null, 'group', 'dm'].indexOf(a.type) - ['', null, 'group', 'dm'].indexOf(b.type)
)
);
};