mirror of
https://github.com/greenart7c3/Amber.git
synced 2026-10-05 19:08:23 +00:00
Fix get_public_key not working when using bunker and logged in a different account from the client
This commit is contained in:
@@ -423,7 +423,8 @@ class SignerProvider : ContentProvider() {
|
||||
|
||||
"content://$appId.GET_PUBLIC_KEY" -> {
|
||||
val packageName = callingPackage ?: return null
|
||||
val account = LocalPreferences.loadFromEncryptedStorageSync(context!!) ?: return null
|
||||
val npub = if (projection != null && projection.size >= 3) IntentUtils.parsePubKey(projection[2]) else null
|
||||
val account = LocalPreferences.loadFromEncryptedStorageSync(context!!, npub) ?: return null
|
||||
val database = Amber.instance.getDatabase(account.npub)
|
||||
val permission =
|
||||
database
|
||||
|
||||
Reference in New Issue
Block a user