commit 97bce2011b9c6cd5d6ac4e42f129a48d65955a8d
parent 5fbd7667b1949231360296ecd7ba324fbd0dd47a
Author: rhunk <101876869+rhunk@users.noreply.github.com>
Date:   Sat,  8 Jun 2024 16:23:28 +0200

fix(story_logger): ignore friends of friends stories

Signed-off-by: rhunk <101876869+rhunk@users.noreply.github.com>

Diffstat:
Mcore/src/main/kotlin/me/rhunk/snapenhance/core/features/impl/MixerStories.kt | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/core/src/main/kotlin/me/rhunk/snapenhance/core/features/impl/MixerStories.kt b/core/src/main/kotlin/me/rhunk/snapenhance/core/features/impl/MixerStories.kt @@ -73,6 +73,9 @@ class MixerStories : Feature("MixerStories", loadParams = FeatureLoadParams.INIT val storyMap = mutableMapOf<String, MutableList<StoryData>>() firstOrNull(3)?.toReader()?.eachBuffer(3) { + val storySubType = getVarInt(23) + // ignore friends of friends stories + if (storySubType == 39L) return@eachBuffer followPath(36) { eachBuffer(1) data@{ val userId = getString(8, 1) ?: return@data