From 0586ade8d8570a9a3137a53e8ffb45440832493d Mon Sep 17 00:00:00 2001 From: Sheldan <5037282+Sheldan@users.noreply.github.com> Date: Fri, 15 May 2026 00:26:52 +0200 Subject: [PATCH] [AB-xxx] filtering current section from past sections in twitch stream notifications to not duplicate the information in case of a refresh --- .../sheldan/abstracto/twitch/service/StreamerServiceBean.java | 1 + 1 file changed, 1 insertion(+) diff --git a/abstracto-application/abstracto-modules/twitch/twitch-impl/src/main/java/dev/sheldan/abstracto/twitch/service/StreamerServiceBean.java b/abstracto-application/abstracto-modules/twitch/twitch-impl/src/main/java/dev/sheldan/abstracto/twitch/service/StreamerServiceBean.java index 57c46ce78..be83a9904 100644 --- a/abstracto-application/abstracto-modules/twitch/twitch-impl/src/main/java/dev/sheldan/abstracto/twitch/service/StreamerServiceBean.java +++ b/abstracto-application/abstracto-modules/twitch/twitch-impl/src/main/java/dev/sheldan/abstracto/twitch/service/StreamerServiceBean.java @@ -174,6 +174,7 @@ public class StreamerServiceBean implements StreamerService { .getCurrentSession() .getSections() .stream() + .filter(pastSection -> !pastSection.getTitle().equals(stream.getTitle()) && !pastSection.getGameId().equals(stream.getGameId())) // filter out the current section in case it was refreshed .sorted(Comparator.comparing(StreamSessionSection::getId).reversed()) .map(StreamSectionDisplay::fromSection) .toList();