mirror of
https://github.com/nostr-protocol/nips.git
synced 2024-11-14 07:49:07 -05:00
add optional kind to content resolver
This commit is contained in:
parent
016dc7ef89
commit
5c4aa8f294
8
55.md
8
55.md
|
@ -332,7 +332,7 @@ If the user chose to always reject the event, signer application will return the
|
||||||
```kotlin
|
```kotlin
|
||||||
val result = context.contentResolver.query(
|
val result = context.contentResolver.query(
|
||||||
Uri.parse("content://com.example.signer.NIP04_ENCRYPT"),
|
Uri.parse("content://com.example.signer.NIP04_ENCRYPT"),
|
||||||
listOf("$plainText", "${hex_pub_key}", "${logged_in_user_npub}"),
|
listOf("$plainText", "${hex_pub_key}", "${logged_in_user_npub}", "${optional_event_kind}"),
|
||||||
null,
|
null,
|
||||||
null,
|
null,
|
||||||
null
|
null
|
||||||
|
@ -356,7 +356,7 @@ If the user chose to always reject the event, signer application will return the
|
||||||
```kotlin
|
```kotlin
|
||||||
val result = context.contentResolver.query(
|
val result = context.contentResolver.query(
|
||||||
Uri.parse("content://com.example.signer.NIP44_ENCRYPT"),
|
Uri.parse("content://com.example.signer.NIP44_ENCRYPT"),
|
||||||
listOf("$plainText", "${hex_pub_key}", "${logged_in_user_npub}"),
|
listOf("$plainText", "${hex_pub_key}", "${logged_in_user_npub}", "${optional_event_kind}"),
|
||||||
null,
|
null,
|
||||||
null,
|
null,
|
||||||
null
|
null
|
||||||
|
@ -380,7 +380,7 @@ If the user chose to always reject the event, signer application will return the
|
||||||
```kotlin
|
```kotlin
|
||||||
val result = context.contentResolver.query(
|
val result = context.contentResolver.query(
|
||||||
Uri.parse("content://com.example.signer.NIP04_DECRYPT"),
|
Uri.parse("content://com.example.signer.NIP04_DECRYPT"),
|
||||||
listOf("$encryptedText", "${hex_pub_key}", "${logged_in_user_npub}"),
|
listOf("$encryptedText", "${hex_pub_key}", "${logged_in_user_npub}", "${optional_event_kind}"),
|
||||||
null,
|
null,
|
||||||
null,
|
null,
|
||||||
null
|
null
|
||||||
|
@ -404,7 +404,7 @@ If the user chose to always reject the event, signer application will return the
|
||||||
```kotlin
|
```kotlin
|
||||||
val result = context.contentResolver.query(
|
val result = context.contentResolver.query(
|
||||||
Uri.parse("content://com.example.signer.NIP44_DECRYPT"),
|
Uri.parse("content://com.example.signer.NIP44_DECRYPT"),
|
||||||
listOf("$encryptedText", "${hex_pub_key}", "${logged_in_user_npub}"),
|
listOf("$encryptedText", "${hex_pub_key}", "${logged_in_user_npub}", "${optional_event_kind}"),
|
||||||
null,
|
null,
|
||||||
null,
|
null,
|
||||||
null
|
null
|
||||||
|
|
Loading…
Reference in New Issue
Block a user