HomePhabricator
Diffusion Comm 3b38c3691379

[native] Update `DisconnectedBar` to display based on `state.connectivity.

Description

[native] Update DisconnectedBar to display based on state.connectivity.connected

Summary:
Similar to D10469, but for native.

As mentioned in that diff, going to start by updating the DisconnectedBar on both native and web client to use network connectivity info instead of keyserver connectivity info.

Will then go ahead and rename eg useDisconnectedBarVisibilityHandler to make it clear that they're no longer connected to DisconnectedBar.


Depends on D10469

Test Plan:

  1. Open native app on physical device
  2. Kill local keyserver
  3. Observe that nothing happens
  4. Turn off WiFi
  5. Observe DisconnectedBar

Reviewers: ashoat, ginsu, tomek

Reviewed By: ashoat, ginsu

Subscribers: inka

Differential Revision: https://phab.comm.dev/D10475

Details

Provenance
atulAuthored on Jan 4 2024, 10:43 AM
Reviewer
ashoat
Differential Revision
D10475: [native] Update `DisconnectedBar` to display based on `state.connectivity.connected`
Parents
rCOMM2a46a4ea631f: [web][keyserver] codeVersion -> 61
Branches
Unknown
Tags
Unknown