bitkit
bitkit copied to clipboard
[Bug]: Electrum Server page doesn't refresh details on reconnection
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:
- Open Bitkit
- Disconnect from internet and wait for "Reconnecting to Electrum" notification is displayed
- Go to Electrum Server setting page
- Reconnect to internet and wait for "Electrum Connection Restored" notifcation
- Observe "Currently connected to" value is still "disconnected". This is not true.
- 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
Is https://github.com/synonymdev/bitkit/issues/1441 related?
Verified on 8908053a3198a167c16a3062fb68282160a63112 Electrum Server page now updates in real time when reconnection occurs.