forked from Mirrors/elk
fix: sorting of reblogs and favourites in grouped notifications
This commit is contained in:
parent
5c4cd7e992
commit
6388b5287c
1 changed files with 1 additions and 1 deletions
|
@ -70,7 +70,7 @@ function groupItems(items: Notification[]): NotificationSlot[] {
|
|||
}
|
||||
like[notification.type === 'reblog' ? 'reblog' : 'favourite'] = notification
|
||||
}
|
||||
likes.sort((a, b) => b.reblog && !a.reblog ? 1 : -1)
|
||||
likes.sort((a, b) => a.reblog ? !b.reblog || (a.favourite && !b.favourite) ? -1 : 0 : 0)
|
||||
results.push({
|
||||
id: `grouped-${id++}`,
|
||||
type: 'grouped-reblogs-and-favourites',
|
||||
|
|
Loading…
Reference in a new issue