Reactions local echoes: Do not show reactions with 0 count (case of reaction being removed)

This commit is contained in:
manuroe
2019-06-12 18:03:21 +02:00
parent bf2283e238
commit 310b39ca1f
@@ -87,7 +87,7 @@ import UIKit
}
private func loadData() {
guard let reactionCounts = self.aggregations.aggregatedReactions(onEvent: self.eventId, inRoom: self.roomId)?.reactions else {
guard let reactionCounts = self.aggregations.aggregatedReactions(onEvent: self.eventId, inRoom: self.roomId)?.withNonZeroCount()?.reactions else {
return
}