Skip to content

NethLink: the "No internet connection" dialog never closes, even with Refresh, once the connection is back #8327

Closed

Description

@tonyco97

Component and version

  • NethLink 1.6.0 (same behavior on main), regression introduced in 1.6.0-testing.10

Steps to reproduce

  1. Log in to NethLink
  2. Make NethLink show the "No internet connection" dialog (e.g. a temporary network loss detected by the connectivity check)
  3. Restore the network and click "Refresh" in the dialog
  4. Wait without clicking

Expected behavior

As soon as the connection is available again, "Refresh" closes the dialog, and the dialog also closes by itself when the periodic connectivity check succeeds.

Actual behavior

The dialog stays open forever: clicking "Refresh" does nothing and it never closes by itself. The only workaround is to close and reopen NethLink.

Two causes:

  • Refresh is ignored by the main process store: the main store.set() decides whether a key changed by comparing the values of all the store keys (lodash.difference), not the value of the changed key. Setting connection: true is discarded whenever another key already holds true. Since 1.6.0-testing.10 the store always contains cameraPermission: true (Linux, and Windows/macOS with the camera permission granted), so connection can never go back to true from the main process and no update reaches the windows.
  • Automatic recovery never fires: the PhoneIsland event listeners are attached once with the handlers created at the first render, so phone-island-internet-connected compares against the connection value of the first render (true) and never restores it after phone-island-internet-disconnected set it to false.

Suggested fix or workaround

Workaround: close and reopen NethLink.

Fix: compare only the value of the changed key in store.set(), and make the PhoneIsland internet event handlers read the current account/connection values.

Activity

  1. added this to the NethVoice 1.8 milestone on Nov 17, 2026
  2. self-assigned this
    on Nov 17, 2026
  3. added
    nethvoice
    nethlink
    on Nov 17, 2026
  4. added theissue type on Nov 17, 2026
  5. tonyco97 commented on Nov 17, 2026

    @tonyco97
    Author

    Test

    PR: NethServer/nethlink#266

    Setup: NethLink logged in with a user of a NethVoice instance, on Windows/macOS with the camera permission granted (on Linux it is always granted). To show the dialog, briefly disconnect the network (Wi-Fi off or cable unplugged) until "No internet connection" appears.

    Test Case 1 - Refresh closes the dialog once the connection is back

    • Disconnect the network: the "No internet connection" dialog appears
    • Reconnect the network and click "Refresh" right away: the dialog closes

    Test Case 2 - The dialog closes by itself

    • Disconnect the network: the dialog appears
    • Reconnect the network and do not click anything: the dialog closes by itself within a few seconds

    Test Case 3 - Refresh while still offline

    • Disconnect the network: the dialog appears
    • Click "Refresh" while still offline: the dialog stays open
    • Reconnect the network and click "Refresh": the dialog closes

    Test Case 4 - Startup without network

    • Close NethLink, disconnect the network and start NethLink: the splash screen shows the no connection dialog
    • Reconnect the network: NethLink starts and logs in automatically, with no "No internet connection" dialog left open

    Test Case 5 - Regressions

    • Change the theme from the NethLink settings (light/dark/system) and the operating system theme with NethLink on "system": NethLink follows the selected theme
    • Log out and log in again, then repeat Test Case 2: the dialog still closes by itself
    • Make and receive a call with NethLink, with the video call icon enabled/disabled according to the camera permission
  6. moved this from Todo to In Progress in NethVoiceon Nov 17, 2026
  7. removed their assignment
    on Nov 17, 2026
  8. added
    testing
    on Nov 17, 2026
  9. moved this from In Progress to Testing in NethVoiceon Nov 17, 2026
  10. tonyco97 commented on Nov 17, 2026

    @tonyco97
    Author
  11. andrea-marchionni commented on Nov 17, 2026

    @andrea-marchionni

    MacOS testing ok

  12. removed their assignment
    on Nov 17, 2026
  13. added
    verified
    on Nov 17, 2026
  14. removed
    testing
    on Nov 17, 2026
  15. moved this from Testing to Verified in NethVoiceon Nov 17, 2026
  16. edospadoni commented on Nov 17, 2026

    @edospadoni
    Member

    Release NethServer/nethlink v1.6.1

  17. removed
    verified
    on Nov 17, 2026
  18. moved this from Verified to Done in NethVoiceon Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    nethlinknethvoice

    Type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions