mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-04-09 20:39:24 +02:00
Cache must update before updating the screen.
This commit is contained in:
parent
48a6923537
commit
c53fc03157
@ -1406,6 +1406,10 @@ object LocalCache {
|
||||
event.editedNote()?.let {
|
||||
checkGetOrCreateNote(it)?.let { editedNote ->
|
||||
modificationCache.remove(editedNote.idHex)
|
||||
// if it is a new post from the user, must update list of Notes to quickly update the user.
|
||||
if (relay == null) {
|
||||
updateListCache()
|
||||
}
|
||||
editedNote.liveSet?.innerModifications?.invalidateData()
|
||||
}
|
||||
}
|
||||
@ -2132,8 +2136,8 @@ class LocalCacheLiveData {
|
||||
fun invalidateData(newNote: Note) {
|
||||
bundler.invalidateList(newNote) {
|
||||
bundledNewNotes ->
|
||||
_newEventBundles.emit(bundledNewNotes)
|
||||
LocalCache.updateListCache()
|
||||
_newEventBundles.emit(bundledNewNotes)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user