damus

nostr ios client
git clone git://jb55.com/damus
Log | Files | Refs | README | LICENSE

commit ba3a6b07b2161ddf402ddf06afebbb0dd6ab1610
parent 043eb5b4360eba658b5c5a28759f32ee84dbd77a
Author: William Casarin <jb55@jb55.com>
Date:   Sat, 10 Jun 2023 11:33:07 +0200

Fix warnings

Diffstat:
Mdamus/ContentView.swift | 1-
Mdamus/Models/HomeModel.swift | 4+---
2 files changed, 1 insertion(+), 4 deletions(-)

diff --git a/damus/ContentView.swift b/damus/ContentView.swift @@ -790,7 +790,6 @@ func find_event(state: DamusState, query query_: FindEvent, callback: @escaping return } - var attempts = 0 filter = NostrFilter(ids: [evid], limit: 1) } diff --git a/damus/Models/HomeModel.swift b/damus/Models/HomeModel.swift @@ -370,9 +370,7 @@ class HomeModel: ObservableObject { /// Send the initial filters, just our contact list mostly func send_initial_filters(relay_id: String) { - var filter = NostrFilter(kinds: [.contacts], - limit: 1, - authors: [damus_state.pubkey]) + let filter = NostrFilter(kinds: [.contacts], limit: 1, authors: [damus_state.pubkey]) pool.send(.subscribe(.init(filters: [filter], sub_id: init_subid)), to: [relay_id]) }