Skip to content

Commit

Permalink
Fix issue 2 on iOS
Browse files Browse the repository at this point in the history
  • Loading branch information
ibrkhalil committed Oct 8, 2022
1 parent c53bbc7 commit 1f6b42c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/status_im/network/net_info.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -35,22 +35,22 @@
connectivity-status (if isConnected :online :offline)
status-changed? (not= connectivity-status old-network-status)
type-changed? (= type old-network-type)
reconnected? (when (and isInternetReachable
@app-went-offline?)
(swap! app-went-offline? not)
true)
_ (when (and (not isConnected)
(not isInternetReachable)
(not @app-went-offline?))
(swap! app-went-offline? not))]
(swap! app-went-offline? not))
reconnected? (when (and isInternetReachable
@app-went-offline?)
(swap! app-went-offline? not)
true)]
(log/debug "[net-info]"
"old-network-status" old-network-status
"old-network-type" old-network-type
"connectivity-status" connectivity-status
"type" type
"details" details)
(fx/merge cofx
(when status-changed?
(when (or status-changed? reconnected?)
(change-network-status isConnected reconnected?))
(when-not type-changed?
(change-network-type old-network-type type (:is-connection-expensive details))))))
Expand Down

0 comments on commit 1f6b42c

Please sign in to comment.