SidebarList: fix sorting

This commit is contained in:
Liam Fitzgerald 2021-06-11 09:30:35 +10:00
parent 1d5ea432ea
commit 5f2d4e3dd8
No known key found for this signature in database
GPG Key ID: D390E12C61D1CFFB

View File

@ -33,8 +33,9 @@ function sidebarSort(
const bAppName = bAssoc?.['app-name'];
const aUpdated = a.startsWith('~')
? (inboxUnreads?.[`/${patp2dec(a)}`]?.last)
? (inboxUnreads?.[`/${patp2dec(a)}`]?.last || 0)
: (apps[aAppName]?.lastUpdated(a) || 0);
const bUpdated = b.startsWith('~')
? (inboxUnreads?.[`/${patp2dec(b)}`]?.last || 0)
: (apps[bAppName]?.lastUpdated(b) || 0);