mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-09-22 21:51:57 +02:00
Uses local copy of cache instead of global singleton
This commit is contained in:
@@ -1784,7 +1784,7 @@ class Account(
|
|||||||
}
|
}
|
||||||
|
|
||||||
scope.launch {
|
scope.launch {
|
||||||
LocalCache.live.newEventBundles.collect { newNotes ->
|
cache.live.newEventBundles.collect { newNotes ->
|
||||||
logTime("Account ${userProfile().toBestDisplayName()} newEventBundle Update with ${newNotes.size} new notes") {
|
logTime("Account ${userProfile().toBestDisplayName()} newEventBundle Update with ${newNotes.size} new notes") {
|
||||||
upgradeAttestations()
|
upgradeAttestations()
|
||||||
newNotesPreProcessor.runNew(newNotes)
|
newNotesPreProcessor.runNew(newNotes)
|
||||||
@@ -1793,7 +1793,7 @@ class Account(
|
|||||||
}
|
}
|
||||||
|
|
||||||
scope.launch {
|
scope.launch {
|
||||||
LocalCache.live.deletedEventBundles.collect { newNotes ->
|
cache.live.deletedEventBundles.collect { newNotes ->
|
||||||
logTime("Account ${userProfile().toBestDisplayName()} deletedEventBundle Update with ${newNotes.size} new notes") {
|
logTime("Account ${userProfile().toBestDisplayName()} deletedEventBundle Update with ${newNotes.size} new notes") {
|
||||||
newNotesPreProcessor.runDeleted(newNotes)
|
newNotesPreProcessor.runDeleted(newNotes)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user