This is a minor refactor on the way wallet invoice URLs are handled, in order to better fit the interface, enforce the design pattern, and avoid side-effects in a particular function that handles opening URLs. This design pattern was introduced to prevent issues on the previous pattern, where URL handling was done with side-effects inside multiple levels of nested logic and separate function calls, which would make debugging very difficult, and cause the app to fail silently. Closes: https://github.com/damus-io/damus/issues/3023 Signed-off-by: Daniel D’Aquino <daniel@daquino.me>
4.4 KiB
4.4 KiB