forked from zulip/zulip-mobile
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
online state: Switch to
isInternetReachable
, from connectionType
.
This is hopefully more accurate about what we actually want to know: "can the app expect to reach the Internet?" Not just "is there some network connection?". Getting this right is already important for a nice user experience. But it'll be more critical if we adapt our request retry-and-timeout logic to be aware of the Internet reachability state, which is reasonable to want to do. In 6.0.0, `isInternetReachable` started being `boolean | null`; see the comment about when it's `null`. Since `null` is a meaningful third state, adjust the Redux plumbing to allow `null` for `state.session.isOnline` so we can do something distinct in the UI.
- Loading branch information
1 parent
9b5b527
commit 0e7a33c
Showing
6 changed files
with
57 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters