forked from mirrors/Fedilab
Fix order in notifications
This commit is contained in:
parent
230ed4b2ba
commit
4d27fd47a1
1 changed files with 1 additions and 1 deletions
|
@ -596,7 +596,7 @@ public class FragmentMastodonNotification extends Fragment implements Notificati
|
|||
for (Notification notificationsAlreadyPresent : notificationList) {
|
||||
//We compare the date of each status and we only add status having a date greater than the another, it is inserted at this position
|
||||
//Pinned messages are ignored because their date can be older
|
||||
if (notificationReceived.id.compareTo(notificationsAlreadyPresent.id) > 0) {
|
||||
if (notificationReceived.created_at.after(notificationsAlreadyPresent.created_at)) {
|
||||
if (!notificationList.contains(notificationReceived)) {
|
||||
notificationList.add(position, notificationReceived);
|
||||
notificationAdapter.notifyItemInserted(position);
|
||||
|
|
Loading…
Reference in a new issue