Only reload global view on pulldown refresh
Changelog-Changed: Only reload global view on pulldown refresh
This commit is contained in:
1 parent
f8dc9f42dd
commit
a4d62d295c
3 files changed
+14
-7
No files matched your search
@@ -10,17 +10,18 @@ import Foundation
|
||||
|
||||
/// The data model for the SearchHome view, typically something global-like
|
||||
class SearchHomeModel: ObservableObject {
|
||||
@Published var events: [NostrEvent] = []
|
||||
@Published var events: [NostrEvent]
|
||||
@Published var loading: Bool = false
|
||||
|
||||
var seen_pubkey: Set<String> = Set()
|
||||
let damus_state: DamusState
|
||||
var damus_state: DamusState
|
||||
let base_subid = UUID().description
|
||||
let profiles_subid = UUID().description
|
||||
let limit: UInt32 = 250
|
||||
|
||||
init(damus_state: DamusState) {
|
||||
self.damus_state = damus_state
|
||||
init() {
|
||||
self.events = []
|
||||
self.damus_state = .empty
|
||||
}
|
||||
|
||||
func get_base_filter() -> NostrFilter {
|
||||
|
||||
Reference in new issue
Block a user