fix: sorting of reblogs and favourites in grouped notifications
parent
5c4cd7e992
commit
6388b5287c
|
@ -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 New Issue