remote id blank check from android sign

This commit is contained in:
DASHU
2024-11-25 12:27:48 +08:00
parent 90ba4443b7
commit 26a375f84d
2 changed files with 5 additions and 3 deletions

View File

@@ -97,6 +97,8 @@ class AndroidSignerContentResolverProvider extends AndroidContentProvider
} }
} }
// print("appType $appType code $code authtype $authType");
MatrixCursorData? data; MatrixCursorData? data;
if (authType == AuthType.DECRYPT_ZAP_EVENT) { if (authType == AuthType.DECRYPT_ZAP_EVENT) {
// direct reject decrypt_zap_event query! // direct reject decrypt_zap_event query!

View File

@@ -56,14 +56,14 @@ mixin AndroidSignerMixin on PermissionCheckMixin {
var extra = intent.extra; var extra = intent.extra;
if (intent.extra != null) { if (intent.extra != null) {
var callId = extra!["id"]; var callId = extra![
"id"]; // sometime client don't send this id, don't need to check blank, just pass it return.
var authTypeStr = extra["type"]; var authTypeStr = extra["type"];
var currentUser = extra["current_user"]; var currentUser = extra["current_user"];
var pubkey = extra["pubKey"]; var pubkey = extra["pubKey"];
pubkey ??= extra["pubkey"]; pubkey ??= extra["pubkey"];
if (StringUtil.isNotBlank(callId) && if (StringUtil.isNotBlank(authTypeStr) &&
StringUtil.isNotBlank(authTypeStr) &&
StringUtil.isNotBlank(code)) { StringUtil.isNotBlank(code)) {
var authType = AuthType.GET_PUBLIC_KEY; var authType = AuthType.GET_PUBLIC_KEY;
if (authTypeStr == "get_public_key") { if (authTypeStr == "get_public_key") {