From 9f7711fdfe54dddcebfd4cfde509968c50aa1e2c Mon Sep 17 00:00:00 2001 From: William Casarin Date: Sun, 30 Oct 2022 23:13:01 -0700 Subject: [PATCH] fix signal detection Signed-off-by: William Casarin --- damus/ContentView.swift | 1 - damus/Models/HomeModel.swift | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/damus/ContentView.swift b/damus/ContentView.swift index eeb21ef..5225819 100644 --- a/damus/ContentView.swift +++ b/damus/ContentView.swift @@ -332,7 +332,6 @@ struct ContentView: View { } .onReceive(timer) { n in self.damus_state?.pool.connect_to_disconnected() - update_signal_from_pool(signal: self.home.signal, pool: self.damus_state!.pool) } } diff --git a/damus/Models/HomeModel.swift b/damus/Models/HomeModel.swift index 85778b3..e98826b 100644 --- a/damus/Models/HomeModel.swift +++ b/damus/Models/HomeModel.swift @@ -214,6 +214,8 @@ class HomeModel: ObservableObject { default: break } + + update_signal_from_pool(signal: signal, pool: damus_state.pool) print("ws_event \(ev)")