diff --git a/app/src/main/java/com/vitorpamplona/amethyst/model/Note.kt b/app/src/main/java/com/vitorpamplona/amethyst/model/Note.kt index 0efcf9be5..199568c3b 100644 --- a/app/src/main/java/com/vitorpamplona/amethyst/model/Note.kt +++ b/app/src/main/java/com/vitorpamplona/amethyst/model/Note.kt @@ -446,55 +446,6 @@ open class Note(val idHex: String) { } } - fun publicZapAuthors(): Set { - // Zaps who the requester was the user - return zaps.mapNotNull { - it.key.author - }.toSet() - } - - fun publicZapAuthorHexes(): Set { - // Zaps who the requester was the user - return zaps.mapNotNull { - it.key.author?.pubkeyHex - }.toSet() - } - - fun reactionAuthors(): Set { - // Zaps who the requester was the user - return reactions.values.map { - it.mapNotNull { it.author } - }.flatten().toSet() - } - - fun reactionAuthorHexes(): Set { - // Zaps who the requester was the user - return reactions.values.map { - it.mapNotNull { it.author?.pubkeyHex } - }.flatten().toSet() - } - - fun replyAuthorHexes(): Set { - // Zaps who the requester was the user - return replies.mapNotNull { - it.author?.pubkeyHex - }.toSet() - } - - fun replyAuthors(): Set { - // Zaps who the requester was the user - return replies.mapNotNull { - it.author - }.toSet() - } - - fun boostAuthors(): Set { - // Zaps who the requester was the user - return boosts.mapNotNull { - it.author - }.toSet() - } - fun getReactionBy(user: User): String? { return reactions.firstNotNullOfOrNull { if (it.value.any { it.author?.pubkeyHex == user.pubkeyHex }) {