Fixes the lack of the Comparator interface for the Deletion Index.

This commit is contained in:
Vitor Pamplona
2024-04-05 14:05:04 -04:00
parent a6953872ea
commit 1738a775ef
4 changed files with 66 additions and 45 deletions
@@ -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(