From 97bce2011b9c6cd5d6ac4e42f129a48d65955a8d Mon Sep 17 00:00:00 2001 From: rhunk <101876869+rhunk@users.noreply.github.com> Date: Sat, 8 Jun 2024 16:23:28 +0200 Subject: [PATCH] fix(story_logger): ignore friends of friends stories Signed-off-by: rhunk <101876869+rhunk@users.noreply.github.com> --- .../me/rhunk/snapenhance/core/features/impl/MixerStories.kt | 3 +++ 1 file changed, 3 insertions(+) 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 index e66344de..0e97b8e3 100644 --- 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>() 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