Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ui: remove unnecessary url string manipulations
This is a follow up commit to `768ab3e9e4f55b872253d55c53983c19ab4c3d8b` in issue #1531 Testing ------- **Device:** iPhone 14 Pro simulator **iOS:** 17.0 **Damus:** This commit **Steps:** 1. Remove all relays. 2. Add the Damus relay. 3. Add `wss://relay.snort.social/` relay **(with trailing slash)**. Shows up on the relay list. (PASS) 4. Add `wss://relay.snort.social/v1` and `wss://relay.snort.social/v2` to the list. Both show up as separate relays (PASS) 4. Watch logs and wait for the relay list event to be sent out 5. Restart Damus (to help ensure the repro is stable) 6. Try removing the Snort relay by swiping. Relay is removed successfully (PASS) 7. Try removing the "v1" relay by clicking on "Disconnect relay" in the detail page. "v1" relay (and NOT "v2") is removed (PASS) 8. Try adding `nos.lol` from the recommended list. Added successfully. (PASS) 9. Remove `nos.lol` with a long press. (PASS) Changelog-Fixed: Fix issue where relays with trailing slashes cannot be removed (#1531) Closes: #1531 Signed-off-by: Daniel D’Aquino <[email protected]> Signed-off-by: William Casarin <[email protected]>
- Loading branch information