mirror of
https://github.com/haorendashu/nowser.git
synced 2025-12-17 01:44:19 +01:00
remote id blank check from android sign
This commit is contained in:
@@ -97,6 +97,8 @@ class AndroidSignerContentResolverProvider extends AndroidContentProvider
|
||||
}
|
||||
}
|
||||
|
||||
// print("appType $appType code $code authtype $authType");
|
||||
|
||||
MatrixCursorData? data;
|
||||
if (authType == AuthType.DECRYPT_ZAP_EVENT) {
|
||||
// direct reject decrypt_zap_event query!
|
||||
|
||||
@@ -56,14 +56,14 @@ mixin AndroidSignerMixin on PermissionCheckMixin {
|
||||
var extra = intent.extra;
|
||||
|
||||
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 currentUser = extra["current_user"];
|
||||
var pubkey = extra["pubKey"];
|
||||
pubkey ??= extra["pubkey"];
|
||||
|
||||
if (StringUtil.isNotBlank(callId) &&
|
||||
StringUtil.isNotBlank(authTypeStr) &&
|
||||
if (StringUtil.isNotBlank(authTypeStr) &&
|
||||
StringUtil.isNotBlank(code)) {
|
||||
var authType = AuthType.GET_PUBLIC_KEY;
|
||||
if (authTypeStr == "get_public_key") {
|
||||
|
||||
Reference in New Issue
Block a user