Avoids creating User for all awardees of a badge.

This commit is contained in:
Vitor Pamplona
2023-03-15 13:22:11 -04:00
parent a597bd7882
commit 80e251acfb
@@ -270,7 +270,6 @@ object LocalCache {
// Log.d("TN", "New Boost (${notes.size},${users.size}) ${note.author?.toBestDisplayName()} ${formattedDateTime(event.createdAt)}")
val author = getOrCreateUser(event.pubKey)
val awardees = event.awardees().mapNotNull { checkGetOrCreateUser(it) }
val awardDefinition = event.awardDefinition().map { getOrCreateAddressableNote(it) }
note.loadEvent(event, author, awardDefinition)