mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-09-27 21:36:28 +02:00
Correctly counts pruned contact lists.
This commit is contained in:
@@ -724,7 +724,7 @@ object LocalCache {
|
|||||||
fun pruneContactLists(userAccount: Account) {
|
fun pruneContactLists(userAccount: Account) {
|
||||||
var removingContactList = 0
|
var removingContactList = 0
|
||||||
users.values.forEach {
|
users.values.forEach {
|
||||||
if (it != userAccount.userProfile() && (it.liveSet == null || it.liveSet?.isInUse() == false)) {
|
if (it != userAccount.userProfile() && (it.liveSet == null || it.liveSet?.isInUse() == false) && it.latestContactList != null) {
|
||||||
it.latestContactList = null
|
it.latestContactList = null
|
||||||
removingContactList++
|
removingContactList++
|
||||||
}
|
}
|
||||||
|
@@ -130,17 +130,14 @@ fun MainTopBar(scaffoldState: ScaffoldState, accountViewModel: AccountViewModel)
|
|||||||
NostrChannelDataSource.printCounter()
|
NostrChannelDataSource.printCounter()
|
||||||
NostrChatroomDataSource.printCounter()
|
NostrChatroomDataSource.printCounter()
|
||||||
NostrChatroomListDataSource.printCounter()
|
NostrChatroomListDataSource.printCounter()
|
||||||
|
|
||||||
NostrGlobalDataSource.printCounter()
|
NostrGlobalDataSource.printCounter()
|
||||||
|
NostrHashtagDataSource.printCounter()
|
||||||
NostrHomeDataSource.printCounter()
|
NostrHomeDataSource.printCounter()
|
||||||
|
|
||||||
NostrSingleEventDataSource.printCounter()
|
|
||||||
NostrSearchEventOrUserDataSource.printCounter()
|
NostrSearchEventOrUserDataSource.printCounter()
|
||||||
NostrSingleChannelDataSource.printCounter()
|
NostrSingleChannelDataSource.printCounter()
|
||||||
|
NostrSingleEventDataSource.printCounter()
|
||||||
NostrSingleUserDataSource.printCounter()
|
NostrSingleUserDataSource.printCounter()
|
||||||
NostrThreadDataSource.printCounter()
|
NostrThreadDataSource.printCounter()
|
||||||
NostrHashtagDataSource.printCounter()
|
|
||||||
|
|
||||||
NostrUserProfileDataSource.printCounter()
|
NostrUserProfileDataSource.printCounter()
|
||||||
|
|
||||||
Log.d("STATE DUMP", "Connected Relays: " + RelayPool.connectedRelays())
|
Log.d("STATE DUMP", "Connected Relays: " + RelayPool.connectedRelays())
|
||||||
|
Reference in New Issue
Block a user