mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-26 06:08:40 +01:00
Fix domain lookup toggles for Yat and Zcash.me providers (#3439)
Both providers checked the wrong SettingsStore flag in isEnabled(), so their toggles in Settings > Connection and sync > Domain lookups had no effect: - YatAddressProvider read lookupsWellKnown instead of lookupsYatService, so the 'Yat' toggle did nothing and '.wellknown' unexpectedly gated it. - ZcashMeAddressProvider read lookupsZcashNames instead of lookupsZcashAddress, so the 'Zcash.me' toggle did nothing and it was gated by the 'Zcash Names' toggle. Each provider now reads the flag its own toggle writes, matching the mapping in ConnectionSyncViewModel.lookupValue/setLookupValue.
This commit is contained in:
@@ -20,7 +20,7 @@ class YatAddressProvider extends AddressLookupProvider {
|
||||
bool canHandle(String q) => q.hasOnlyEmojis; // Yat handle example: 🐶🐾
|
||||
|
||||
@override
|
||||
bool isEnabled(SettingsStore settingsStore) => settingsStore.lookupsWellKnown;
|
||||
bool isEnabled(SettingsStore settingsStore) => settingsStore.lookupsYatService;
|
||||
|
||||
@override
|
||||
Future<List<ParsedAddress>> resolve({
|
||||
|
||||
@@ -15,7 +15,7 @@ class ZcashMeAddressProvider extends AddressLookupProvider {
|
||||
List<CryptoCurrency> get supportedCurrencies => [CryptoCurrency.zec];
|
||||
|
||||
@override
|
||||
bool isEnabled(SettingsStore settingsStore) => settingsStore.lookupsZcashNames;
|
||||
bool isEnabled(SettingsStore settingsStore) => settingsStore.lookupsZcashAddress;
|
||||
|
||||
@override
|
||||
bool canHandle(String query) {
|
||||
|
||||
Reference in New Issue
Block a user