From: David ‘Bombe’ Roden Date: Wed, 29 Jun 2011 07:43:35 +0000 (+0200) Subject: Don’t change lastUpdatedTime on filtered notifications. X-Git-Tag: 0.6.6^2~42 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=3c7c28dad396ea710bec838550ffd54718d7999a;p=Sone.git Don’t change lastUpdatedTime on filtered notifications. --- diff --git a/src/main/java/net/pterodactylus/sone/notify/ListNotificationFilters.java b/src/main/java/net/pterodactylus/sone/notify/ListNotificationFilters.java index 37cff6f..b0198b8 100644 --- a/src/main/java/net/pterodactylus/sone/notify/ListNotificationFilters.java +++ b/src/main/java/net/pterodactylus/sone/notify/ListNotificationFilters.java @@ -102,6 +102,7 @@ public class ListNotificationFilters { } ListNotification filteredNotification = new ListNotification(newPostNotification); filteredNotification.setElements(newPosts); + filteredNotification.setLastUpdateTime(newPostNotification.getLastUpdatedTime()); return filteredNotification; } @@ -137,6 +138,7 @@ public class ListNotificationFilters { } ListNotification filteredNotification = new ListNotification(newReplyNotification); filteredNotification.setElements(newReplies); + filteredNotification.setLastUpdateTime(newReplyNotification.getLastUpdatedTime()); return filteredNotification; }