diff --git a/app/src/main/java/com/vitorpamplona/amethyst/model/Channel.kt b/app/src/main/java/com/vitorpamplona/amethyst/model/Channel.kt index e3303db2e..cdde57b40 100644 --- a/app/src/main/java/com/vitorpamplona/amethyst/model/Channel.kt +++ b/app/src/main/java/com/vitorpamplona/amethyst/model/Channel.kt @@ -51,10 +51,6 @@ class Channel(val idHex: String) { // Observers line up here. val live: ChannelLiveData = ChannelLiveData(this) - private fun refreshObservers() { - live.refresh() - } - fun pruneOldAndHiddenMessages(account: Account): Set { val important = notes.values .filter { it.author?.let { it1 -> account.isHidden(it1) } == false } @@ -63,7 +59,7 @@ class Channel(val idHex: String) { .take(1000) .toSet() - val toBeRemoved = notes.values.filter { it in important }.toSet() + val toBeRemoved = notes.values.filter { it !in important }.toSet() toBeRemoved.forEach { notes.remove(it.idHex)