File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -1086,11 +1086,13 @@ class AppStateProvider extends ChangeNotifier with WidgetsBindingObserver {
10861086 }
10871087
10881088 // Set flood scope from API response (regional TX filtering)
1089- // "*" = wildcard/global → no scope (unscoped flood, same as before)
1089+ // "*" or "#*" = wildcard/global → no scope (unscoped flood, same as before)
10901090 // Any other value (e.g., "ottawa") → derive TransportKey and set scope
10911091 final apiScopes = _apiService.scopes;
1092- if (apiScopes.isNotEmpty && apiScopes.first != '*' ) {
1093- final scopeName = apiScopes.first;
1092+ final firstScope = apiScopes.isNotEmpty ? apiScopes.first : null ;
1093+ final isWildcard = firstScope == null || firstScope == '*' || firstScope == '#*' ;
1094+ if (! isWildcard) {
1095+ final scopeName = firstScope;
10941096 _scope = scopeName.startsWith ('#' ) ? scopeName : '#$scopeName ' ;
10951097 final scopeKey = CryptoService .deriveScopeKey (scopeName);
10961098 debugLog ('[CONN] Setting flood scope: $scopeName ' );
You can’t perform that action at this time.
0 commit comments