[ReactionsMenuViewModel] Do not perform directly reaction requests and use delegation.

This commit is contained in:
SBiOSoftWhare
2019-06-06 11:29:28 +02:00
parent d2683defa0
commit 90d25879a8
4 changed files with 19 additions and 70 deletions
@@ -106,10 +106,8 @@ final class RoomContextualMenuPresenter: NSObject {
animationCompletionInstructions()
}
}
func showReactionsMenu(forEvent eventId: String, inRoom roomId: String, session: MXSession,
aroundFrame frame: CGRect) {
let reactionsMenuViewModel = ReactionsMenuViewModel(aggregations: session.aggregations, roomId: roomId, eventId: eventId)
func showReactionsMenu(reactionsMenuViewModel: ReactionsMenuViewModel, aroundFrame frame: CGRect) {
self.roomContextualMenuViewController?.showReactionsMenu(withViewModel: reactionsMenuViewModel, aroundFrame: frame)
}
}