bitkit icon indicating copy to clipboard operation
bitkit copied to clipboard

[Bug]: Electrum Server page doesn't refresh details on reconnection

Open catch-21 opened this issue 10 months ago • 1 comments

Describe the bug

When viewing the Electrum Server page, if not currently connected to an electrum server and then an automatic reconnection occurs then the page doesn't update to reflect the new status. Navigating back and forth or tapping 'Connect To Host' shows correct details, so this is a minor issue.

Reproduce

This can occur in normal use if network temporarily drops. These steps are an artificial recreation:

  1. Open Bitkit
  2. Disconnect from internet and wait for "Reconnecting to Electrum" notification is displayed
  3. Go to Electrum Server setting page
  4. Reconnect to internet and wait for "Electrum Connection Restored" notifcation
  5. Observe "Currently connected to" value is still "disconnected". This is not true.
  6. Navigate back to "Advanced" settings and back to "Electrum Server" to see correct connected ip:port value

Note: Notifications in steps 2 and 4 may not display. Retry from step 1 with fresh instance of Bitkit.

Screenshots / Recording

https://github.com/synonymdev/bitkit/assets/74595920/8d4c86d9-3d8d-406a-b60e-7bb51f95488e

Operating system

Android 13 TKQ1.220829.002

Bitkit version

v1.0.0-beta.113

Log output

No response

catch-21 avatar Apr 11 '24 16:04 catch-21

Is https://github.com/synonymdev/bitkit/issues/1441 related?

catch-21 avatar Apr 11 '24 16:04 catch-21

Verified on 8908053a3198a167c16a3062fb68282160a63112 Electrum Server page now updates in real time when reconnection occurs.

catch-21 avatar Jun 19 '24 16:06 catch-21