Marks PrivateOutbox contents as encrypted

This commit is contained in:
Vitor Pamplona
2025-03-13 09:04:39 -04:00
parent 258a550e15
commit 8afe1ae537
@@ -47,6 +47,8 @@ class PrivateOutboxRelayListEvent(
) : BaseReplaceableEvent(id, pubKey, createdAt, KIND, tags, content, sig) {
@Transient private var privateTagsCache: Array<Array<String>>? = null
override fun isContentEncoded() = true
override fun countMemory(): Long =
super.countMemory() +
pointerSizeInBytes + (privateTagsCache?.sumOf { pointerSizeInBytes + it.sumOf { pointerSizeInBytes + it.bytesUsedInMemory() } } ?: 0)