From 3eb02cbbd86dd5d34349f85b29b39980dd277417 Mon Sep 17 00:00:00 2001 From: KotlinGeekDev Date: Mon, 22 Sep 2025 15:44:11 +0100 Subject: [PATCH] implement a fix for when a follow set becomes empty(or is empty), which is probably a Nostr limitation. --- .../amethyst/ui/screen/loggedIn/lists/FollowSet.kt | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/lists/FollowSet.kt b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/lists/FollowSet.kt index 2b29bff40..58982ebc3 100644 --- a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/lists/FollowSet.kt +++ b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/lists/FollowSet.kt @@ -65,7 +65,15 @@ data class FollowSet( profileList = publicFollows.toSet(), ) } else { - throw Exception("Mixed follow sets are not supported.") + // Follow set is empty, so assume public. Why? Nostr limitation. + // TODO: Could this be fixed at protocol level? + FollowSet( + identifierTag = dTag, + title = listTitle, + description = listDescription, + visibility = ListVisibility.Public, + profileList = publicFollows.toSet(), + ) } } }