Skip to content

feat: Add membership to MixinSchemeHost and update URI handling #1791

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 24, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions lib/constants/constants.dart
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ enum MixinSchemeHost {
multisigs,
swap,
markets,
membership,
}

const int hour1 = 1000 * 60 * 60;
Expand Down
18 changes: 7 additions & 11 deletions lib/utils/uri_utils.dart
Original file line number Diff line number Diff line change
Expand Up @@ -119,17 +119,11 @@ Future<bool> openUri(
);
}

if (uri.isPay) {
await showUnknownMixinUrlDialog(context, uri);
return false;
}

if (uri.isMultisigs) {
await showUnknownMixinUrlDialog(context, uri);
return false;
}

if (uri.isSwap || uri.isMarkets) {
if (uri.isPay ||
uri.isMultisigs ||
uri.isSwap ||
uri.isMarkets ||
uri.isMembership) {
await showUnknownMixinUrlDialog(context, uri);
return false;
}
Expand Down Expand Up @@ -379,6 +373,8 @@ extension _MixinUriExtension on Uri {
_isTypeHost(MixinSchemeHost.markets) ||
_isTypeScheme(MixinSchemeHost.markets);

bool get isMembership => _isTypeHost(MixinSchemeHost.membership);

String? get startTextOfConversation {
if (!isMixin) return null;
return queryParameters['start'];
Expand Down
1 change: 1 addition & 0 deletions linux/flutter/generated_plugins.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ list(APPEND FLUTTER_PLUGIN_LIST

list(APPEND FLUTTER_FFI_PLUGIN_LIST
breakpad_client
jni
mixin_logger
ogg_opus_player
rhttp
Expand Down
10 changes: 5 additions & 5 deletions macos/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@ PODS:
- FlutterMacOS
- screen_retriever_macos (0.0.1):
- FlutterMacOS
- Sentry/HybridSDK (8.46.0)
- sentry_flutter (8.14.2):
- Sentry/HybridSDK (8.51.0)
- sentry_flutter (9.0.0):
- Flutter
- FlutterMacOS
- Sentry/HybridSDK (= 8.46.0)
- Sentry/HybridSDK (= 8.51.0)
- sqlite3 (3.50.1):
- sqlite3/common (= 3.50.1)
- sqlite3/common (3.50.1)
Expand Down Expand Up @@ -217,8 +217,8 @@ SPEC CHECKSUMS:
protocol_handler_macos: f9cd7b13bcaf6b0425f7410cbe52376cb843a936
rhttp: 08d791d6373089de796318f4cfb172cbcf34e78b
screen_retriever_macos: 452e51764a9e1cdb74b3c541238795849f21557f
Sentry: da60d980b197a46db0b35ea12cb8f39af48d8854
sentry_flutter: 27892878729f42701297c628eb90e7c6529f3684
Sentry: 861d70b4ff7c92bf6c21c70a8daab10ac7e7243c
sentry_flutter: ce38c4d9f9a6b9a2c23299928142b85419b3d203
sqlite3: 1d85290c3321153511f6e900ede7a1608718bbd5
sqlite3_flutter_libs: e7fc8c9ea2200ff3271f08f127842131746b70e2
super_native_extensions: c2795d6d9aedf4a79fae25cb6160b71b50549189
Expand Down
1 change: 1 addition & 0 deletions windows/flutter/generated_plugins.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ list(APPEND FLUTTER_PLUGIN_LIST
list(APPEND FLUTTER_FFI_PLUGIN_LIST
breakpad_client
flutter_local_notifications_windows
jni
mixin_logger
ogg_opus_player
rhttp
Expand Down
Loading