Fixes when the logged in accounts only include the current account.

This commit is contained in:
Vitor Pamplona
2024-06-28 13:28:05 -04:00
parent a9cbbf66bd
commit 347b82ef7f

View File

@@ -118,7 +118,8 @@ object NostrAccountDataSource : AmethystNostrDataSource("AccountData") {
) )
fun createOtherAccountsBaseFilter(): TypedFilter? { fun createOtherAccountsBaseFilter(): TypedFilter? {
if (otherAccounts.isEmpty()) return null val otherAuthors = otherAccounts.filter { it != account.userProfile().pubkeyHex }
if (otherAuthors.isEmpty()) return null
return TypedFilter( return TypedFilter(
types = EVENT_FINDER_TYPES, types = EVENT_FINDER_TYPES,
filter = filter =
@@ -134,7 +135,7 @@ object NostrAccountDataSource : AmethystNostrDataSource("AccountData") {
MuteListEvent.KIND, MuteListEvent.KIND,
PeopleListEvent.KIND, PeopleListEvent.KIND,
), ),
authors = otherAccounts.filter { it != account.userProfile().pubkeyHex }, authors = otherAuthors,
limit = 100, limit = 100,
), ),
) )