Reactions: Use the hack like on riot-android and riot-web if the server has not yet the aggregations API

This commit is contained in:
manuroe
2019-05-20 16:04:54 +02:00
parent 71e8d104d6
commit 2824372877
2 changed files with 47 additions and 2 deletions
@@ -105,7 +105,7 @@ final class RoomContextualMenuPresenter: NSObject {
func showReactionsMenu(forEvent eventId: String, inRoom roomId: String, session: MXSession,
aroundFrame frame: CGRect) {
let reactionsMenuViewModel = ReactionsMenuViewModel(aggregations: session.aggregations, roomId: roomId, eventId: eventId)
let reactionsMenuViewModel = ReactionsMenuViewModel(aggregations: session.aggregations, roomId: roomId, eventId: eventId, session: session)
self.roomContextualMenuViewController?.showReactionsMenu(withViewModel: reactionsMenuViewModel, aroundFrame: frame)
}
}