mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-10-09 23:02:32 +02:00
Fixes when the logged in accounts only include the current account.
This commit is contained in:
@@ -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,
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
Reference in New Issue
Block a user