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