damus

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

commit 24cc361d605c0e9aee0ca2daf00b6147c07f7c21
parent 71bb9d6c92ce9b720c2d3860c8a91c5df59bbb77
Author: William Casarin <jb55@jb55.com>
Date:   Sat, 10 Jun 2023 15:08:53 +0200

refactor: make send_initial_filter more readible

Diffstat:
Mdamus/Models/HomeModel.swift | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/damus/Models/HomeModel.swift b/damus/Models/HomeModel.swift @@ -371,7 +371,8 @@ class HomeModel: ObservableObject { /// Send the initial filters, just our contact list mostly func send_initial_filters(relay_id: String) { let filter = NostrFilter(kinds: [.contacts], limit: 1, authors: [damus_state.pubkey]) - pool.send(.subscribe(.init(filters: [filter], sub_id: init_subid)), to: [relay_id]) + let subscription = NostrSubscribe(filters: [filter], sub_id: init_subid) + pool.send(.subscribe(subscription), to: [relay_id]) } func send_home_filters(relay_id: String?) {