Fixes global feed

This commit is contained in:
Vitor Pamplona
2023-08-31 19:02:54 -04:00
parent 8982f02a4a
commit 3423626c60
@@ -54,8 +54,8 @@ object NostrHomeDataSource : NostrDataSource("HomeFeed") {
} }
fun createFollowAccountsFilter(): TypedFilter { fun createFollowAccountsFilter(): TypedFilter {
val follows = account.selectedUsersFollowList(account.defaultHomeFollowList) ?: emptySet() val follows = account.selectedUsersFollowList(account.defaultHomeFollowList)
val followSet = follows.plus(account.userProfile().pubkeyHex).toList() val followSet = follows?.plus(account.userProfile().pubkeyHex)?.toList()?.ifEmpty { null }
return TypedFilter( return TypedFilter(
types = setOf(FeedType.FOLLOWS), types = setOf(FeedType.FOLLOWS),