mirror of
https://github.com/flarum/framework.git
synced 2025-02-21 07:50:24 +08:00
Make sure notifications are sorted
This commit is contained in:
parent
056bf669c8
commit
07e2698504
@ -80,7 +80,7 @@ export default class UserNotifications extends Component {
|
||||
app.store.find('notifications').then(notifications => {
|
||||
this.props.user.pushData({unreadNotificationsCount: 0});
|
||||
this.loading(false);
|
||||
app.cache.notifications = notifications;
|
||||
app.cache.notifications = notifications.sort((a, b) => b.time() - a.time());
|
||||
m.redraw();
|
||||
})
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user