diff --git a/Riot/Modules/Common/Recents/Service/MatrixSDK/RecentsListService.swift b/Riot/Modules/Common/Recents/Service/MatrixSDK/RecentsListService.swift index f2a6a4327..0a61470fe 100644 --- a/Riot/Modules/Common/Recents/Service/MatrixSDK/RecentsListService.swift +++ b/Riot/Modules/Common/Recents/Service/MatrixSDK/RecentsListService.swift @@ -457,7 +457,7 @@ public class RecentsListService: NSObject, RecentsListServiceProtocol { } private func notifyDataChange(on fetcher: MXRoomListDataFetcher) { - multicastDelegate.invoke(invocation: { $0.serviceDidChangeData(self) }) + multicastDelegate.invoke({ $0.serviceDidChangeData(self) }) } deinit { diff --git a/Riot/Modules/Common/Recents/Service/Mock/MockRecentsListService.swift b/Riot/Modules/Common/Recents/Service/Mock/MockRecentsListService.swift index 260c1d694..c8c37191f 100644 --- a/Riot/Modules/Common/Recents/Service/Mock/MockRecentsListService.swift +++ b/Riot/Modules/Common/Recents/Service/Mock/MockRecentsListService.swift @@ -164,7 +164,7 @@ public class MockRecentsListService: NSObject, RecentsListServiceProtocol { } private func notifyDataChange() { - multicastDelegate.invoke(invocation: { $0.serviceDidChangeData(self) }) + multicastDelegate.invoke({ $0.serviceDidChangeData(self) }) } }