Removes the need to specify nulls for new TextNote creations
This commit is contained in:
@@ -45,16 +45,16 @@ class TextNoteEvent(
|
|||||||
|
|
||||||
fun create(
|
fun create(
|
||||||
msg: String,
|
msg: String,
|
||||||
replyTos: List<String>?,
|
replyTos: List<String>? = null,
|
||||||
mentions: List<String>?,
|
mentions: List<String>? = null,
|
||||||
addresses: List<ATag>?,
|
addresses: List<ATag>? = null,
|
||||||
extraTags: List<String>?,
|
extraTags: List<String>? = null,
|
||||||
zapReceiver: List<ZapSplitSetup>? = null,
|
zapReceiver: List<ZapSplitSetup>? = null,
|
||||||
markAsSensitive: Boolean,
|
markAsSensitive: Boolean = false,
|
||||||
zapRaiserAmount: Long?,
|
zapRaiserAmount: Long? = null,
|
||||||
replyingTo: String?,
|
replyingTo: String? = null,
|
||||||
root: String?,
|
root: String? = null,
|
||||||
directMentions: Set<HexKey>,
|
directMentions: Set<HexKey> = emptySet(),
|
||||||
geohash: String? = null,
|
geohash: String? = null,
|
||||||
nip94attachments: List<FileHeaderEvent>? = null,
|
nip94attachments: List<FileHeaderEvent>? = null,
|
||||||
signer: NostrSigner,
|
signer: NostrSigner,
|
||||||
|
|||||||
Reference in New Issue
Block a user