Fixes the lack of the Comparator interface for the Deletion Index.
This commit is contained in:
@@ -38,6 +38,8 @@ class DeletionEvent(
|
||||
|
||||
fun deleteAddresses() = taggedAddresses()
|
||||
|
||||
fun deleteAddressTags() = tags.mapNotNull { if (it.size > 1 && it[0] == "a") it[1] else null }
|
||||
|
||||
companion object {
|
||||
const val KIND = 5
|
||||
const val ALT = "Deletion event"
|
||||
|
||||
@@ -115,7 +115,7 @@ class DraftEvent(
|
||||
pubKey: HexKey,
|
||||
dTag: String,
|
||||
): String {
|
||||
return ATag(KIND, pubKey, dTag, null).toTag()
|
||||
return ATag.assembleATag(KIND, pubKey, dTag)
|
||||
}
|
||||
|
||||
fun create(
|
||||
|
||||
Reference in New Issue
Block a user