Fixes bug on not updating observablesByKindAndAuthor
This commit is contained in:
@@ -211,9 +211,10 @@ object LocalCache {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun updateObservables(event: Event) {
|
private fun updateObservables(event: Event) {
|
||||||
val observablesOfKind = observablesByKindAndETag[event.kind] ?: return
|
observablesByKindAndETag[event.kind]?.let { observablesOfKind ->
|
||||||
event.forEachTaggedEvent {
|
event.forEachTaggedEvent {
|
||||||
observablesOfKind[it]?.updateIfMatches(event)
|
observablesOfKind[it]?.updateIfMatches(event)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
observablesByKindAndAuthor[event.kind]?.get(event.pubKey)?.updateIfMatches(event)
|
observablesByKindAndAuthor[event.kind]?.get(event.pubKey)?.updateIfMatches(event)
|
||||||
|
|||||||
Reference in New Issue
Block a user