Browse Source

fix signal detection

Signed-off-by: William Casarin <jb55@jb55.com>
profile-edit
William Casarin 2 years ago
parent
commit
9f7711fdfe
  1. 1
      damus/ContentView.swift
  2. 2
      damus/Models/HomeModel.swift

1
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)
}
}

2
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)")

Loading…
Cancel
Save