Marks PrivateOutbox contents as encrypted
This commit is contained in:
+2
@@ -47,6 +47,8 @@ class PrivateOutboxRelayListEvent(
|
|||||||
) : BaseReplaceableEvent(id, pubKey, createdAt, KIND, tags, content, sig) {
|
) : BaseReplaceableEvent(id, pubKey, createdAt, KIND, tags, content, sig) {
|
||||||
@Transient private var privateTagsCache: Array<Array<String>>? = null
|
@Transient private var privateTagsCache: Array<Array<String>>? = null
|
||||||
|
|
||||||
|
override fun isContentEncoded() = true
|
||||||
|
|
||||||
override fun countMemory(): Long =
|
override fun countMemory(): Long =
|
||||||
super.countMemory() +
|
super.countMemory() +
|
||||||
pointerSizeInBytes + (privateTagsCache?.sumOf { pointerSizeInBytes + it.sumOf { pointerSizeInBytes + it.bytesUsedInMemory() } } ?: 0)
|
pointerSizeInBytes + (privateTagsCache?.sumOf { pointerSizeInBytes + it.sumOf { pointerSizeInBytes + it.bytesUsedInMemory() } } ?: 0)
|
||||||
|
|||||||
Reference in New Issue
Block a user