Don’t change lastUpdatedTime on filtered notifications.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 29 Jun 2011 07:43:35 +0000 (09:43 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 29 Jun 2011 07:43:35 +0000 (09:43 +0200)
src/main/java/net/pterodactylus/sone/notify/ListNotificationFilters.java

index 37cff6f..b0198b8 100644 (file)
@@ -102,6 +102,7 @@ public class ListNotificationFilters {
                }
                ListNotification<Post> filteredNotification = new ListNotification<Post>(newPostNotification);
                filteredNotification.setElements(newPosts);
+               filteredNotification.setLastUpdateTime(newPostNotification.getLastUpdatedTime());
                return filteredNotification;
        }
 
@@ -137,6 +138,7 @@ public class ListNotificationFilters {
                }
                ListNotification<Reply> filteredNotification = new ListNotification<Reply>(newReplyNotification);
                filteredNotification.setElements(newReplies);
+               filteredNotification.setLastUpdateTime(newReplyNotification.getLastUpdatedTime());
                return filteredNotification;
        }