From 577fee75dd5323ab7792ca2639edf0a31c590cb1 Mon Sep 17 00:00:00 2001 From: Stefan Ceriu Date: Tue, 16 Nov 2021 13:41:41 +0200 Subject: [PATCH] Fix build after changing aggregation method limits from UInt to Int in the SDK. --- Riot/Modules/Room/EditHistory/EditHistoryViewModel.swift | 2 +- .../Modules/Room/ReactionHistory/ReactionHistoryViewModel.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Riot/Modules/Room/EditHistory/EditHistoryViewModel.swift b/Riot/Modules/Room/EditHistory/EditHistoryViewModel.swift index 2f9b4f0d0..ea27098e1 100644 --- a/Riot/Modules/Room/EditHistory/EditHistoryViewModel.swift +++ b/Riot/Modules/Room/EditHistory/EditHistoryViewModel.swift @@ -105,7 +105,7 @@ final class EditHistoryViewModel: EditHistoryViewModelType { self.update(viewState: .loading) - self.operation = self.aggregations.replaceEvents(forEvent: self.event.eventId, isEncrypted: self.event.isEncrypted, inRoom: self.roomId, from: self.nextBatch, limit: Pagination.count, success: { [weak self] (response) in + self.operation = self.aggregations.replaceEvents(forEvent: self.event.eventId, isEncrypted: self.event.isEncrypted, inRoom: self.roomId, from: self.nextBatch, limit: Int(Pagination.count), success: { [weak self] (response) in guard let sself = self else { return } diff --git a/Riot/Modules/Room/ReactionHistory/ReactionHistoryViewModel.swift b/Riot/Modules/Room/ReactionHistory/ReactionHistoryViewModel.swift index b98ec19c5..69042ee5f 100644 --- a/Riot/Modules/Room/ReactionHistory/ReactionHistoryViewModel.swift +++ b/Riot/Modules/Room/ReactionHistory/ReactionHistoryViewModel.swift @@ -108,7 +108,7 @@ final class ReactionHistoryViewModel: ReactionHistoryViewModelType { self.update(viewState: .loading) - self.operation = self.aggregations.reactionsEvents(forEvent: self.eventId, inRoom: self.roomId, from: self.nextBatch, limit: Pagination.count, success: { [weak self] (response) in + self.operation = self.aggregations.reactionsEvents(forEvent: self.eventId, inRoom: self.roomId, from: self.nextBatch, limit: Int(Pagination.count), success: { [weak self] (response) in guard let self = self else { return }