Creates a BubbleReactionsViewModelBuilder.

This commit is contained in:
SBiOSoftWhare
2020-07-31 18:27:03 +02:00
parent b6d6fefb54
commit fb6e777502
2 changed files with 69 additions and 0 deletions
@@ -94,4 +94,14 @@ import Foundation
self.viewDelegate?.bubbleReactionsViewModel(self, didUpdateViewState: .loaded(reactionsViewData: reactionsViewData, showAllButtonState: showAllButtonState))
}
// MARK: - Hashable
override var hash: Int {
var hasher = Hasher()
hasher.combine(self.aggregatedReactions)
hasher.combine(self.eventId)
hasher.combine(self.showAll)
return hasher.finalize()
}
}