Unpublish incoming notes to prevent unnecessary redraws
Signed-off-by: Daniel D’Aquino <daniel@daquino.me>
This commit is contained in:
@@ -11,7 +11,7 @@ import Foundation
|
||||
class EventHolder: ObservableObject, ScrollQueue {
|
||||
private var has_event = Set<NoteId>()
|
||||
@Published var events: [NostrEvent]
|
||||
@Published var incoming: [NostrEvent]
|
||||
var incoming: [NostrEvent]
|
||||
private(set) var should_queue = false
|
||||
var on_queue: ((NostrEvent) -> Void)?
|
||||
|
||||
|
||||
Reference in New Issue
Block a user