From 92eff02f0ad1adc0e6c1d8bcc1219539ea746017 Mon Sep 17 00:00:00 2001 From: Vitor Pamplona Date: Fri, 25 Apr 2025 17:04:16 -0400 Subject: [PATCH] Removes the hack to reduce memory usage by deleting the .content when saving the event to cache. --- .../main/java/com/vitorpamplona/amethyst/model/LocalCache.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/amethyst/src/main/java/com/vitorpamplona/amethyst/model/LocalCache.kt b/amethyst/src/main/java/com/vitorpamplona/amethyst/model/LocalCache.kt index 18aaceaf7..ad25a92a5 100644 --- a/amethyst/src/main/java/com/vitorpamplona/amethyst/model/LocalCache.kt +++ b/amethyst/src/main/java/com/vitorpamplona/amethyst/model/LocalCache.kt @@ -1777,7 +1777,7 @@ object LocalCache : ILocalCache { // Already processed this event. if (note.event != null) return - note.loadEvent(event.copyNoContent(), author, emptyList()) + note.loadEvent(event, author, emptyList()) refreshObservers(note) } @@ -1797,7 +1797,7 @@ object LocalCache : ILocalCache { // Already processed this event. if (note.event != null) return - note.loadEvent(event.copyNoContent(), author, emptyList()) + note.loadEvent(event, author, emptyList()) refreshObservers(note) }