Skip to content

Commit 7c5cce1

Browse files
browstudio
andauthored
fix(mobile): pass the relay call to the wake resolver's bounded query (#9950)
## Summary Main no longer analyzes: `RelayHttpQueryClient.sendBounded` gained a required `call` parameter in #9821, while #9804 added a caller in the push wake resolver without it. The two landed separately, so neither PR's CI saw the combination. The wake resolver's request is a `/query` POST, so it passes `RelayCall.query`. Its timeouts become `RelayTimeoutException`, which still extends `TimeoutException`, so the resolver's handling is unchanged. ## Validation - `flutter analyze` on the mobile app is clean. - `flutter test test/shared/push` passes. Signed-off-by: Tom Brow <tomb@block.xyz> Co-authored-by: studio <dc2fc481343672df31a689840c09299972e704dac592e0da6f18486646a7ee3e@localhost>
1 parent 9f56569 commit 7c5cce1

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎mobile/lib/shared/push/push_wake_resolver.dart‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import '../community/community.dart';
88
import '../community/community_storage.dart';
99
import '../crypto/event_signing.dart' show verifySchnorrHex;
1010
import '../relay/nostr_models.dart';
11+
import '../relay/relay_call_error.dart' show RelayCall;
1112
import '../relay/relay_client.dart' show RelayException;
1213
import '../relay/relay_http_query_client.dart';
1314
import '../relay/relay_provider.dart';
@@ -363,6 +364,7 @@ Future<void> _resolveCommunity(
363364
request,
364365
maxBytes: pushWakeMaxResponseBytes,
365366
timeout: timeout < left ? timeout : left,
367+
call: RelayCall.query,
366368
);
367369
if (response.statusCode < 200 || response.statusCode >= 300) {
368370
throw RelayException(response.statusCode, '');

0 commit comments

Comments
 (0)