commit ed058afc3bdcf93ac32f0ffe4d5ca927e76a4ddb
parent 0e94c48e26f448a01773ff02e397f014b6ff6449
Author: William Casarin <jb55@jb55.com>
Date: Mon, 24 Apr 2023 18:21:12 -0700
Remove unneeded periodic reconnect timer
Diffstat:
1 file changed, 0 insertions(+), 6 deletions(-)
diff --git a/damus/ContentView.swift b/damus/ContentView.swift
@@ -80,9 +80,6 @@ struct ContentView: View {
@State private var isSideBarOpened = false
@StateObject var home: HomeModel = HomeModel()
- // connect retry timer
- let timer = Timer.publish(every: 4, on: .main, in: .common).autoconnect()
-
let sub_id = UUID().description
@Environment(\.colorScheme) var colorScheme
@@ -450,9 +447,6 @@ struct ContentView: View {
print("post cancelled")
}
}
- .onReceive(timer) { n in
- self.damus_state?.pool.connect_to_disconnected()
- }
.onReceive(handle_notify(.new_mutes)) { notif in
home.filter_events()
}