mirror of
https://github.com/greenart7c3/Amber.git
synced 2026-10-06 03:18:23 +00:00
Ignore empty "nostrsigner:" intents to allow app opening
Intents containing only the "nostrsigner:" URI scheme are now treated as empty requests and ignored by the parser. This allows the scheme to be used to bring the app to the foreground—such as when a user needs to handle pending bunker requests—without triggering event processing errors.
This commit is contained in:
@@ -624,6 +624,11 @@ object IntentUtils {
|
||||
return null
|
||||
}
|
||||
|
||||
if (intent.dataString == "nostrsigner:" && BunkerRequestUtils.getBunkerRequests().isNotEmpty()) {
|
||||
// ditto send this empty request just to open the app when the user has not approved/rejected the bunker request
|
||||
return null
|
||||
}
|
||||
|
||||
if (intent.extras?.getString("id") == null || intent.extras?.getString("id") == "") {
|
||||
intent.putExtra("id", UUID.randomUUID().toString())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user