From 9f136409a1dc792a6305e03dcd13740aba9340bd Mon Sep 17 00:00:00 2001 From: manuroe Date: Tue, 24 Jul 2018 11:39:13 +0200 Subject: [PATCH] MXStore: Use the new async [MXStore stateOfRoom:] method --- .../Modules/Share/Listing/RoomsListViewController.m | 2 +- SiriIntents/IntentHandler.m | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/RiotShareExtension/Modules/Share/Listing/RoomsListViewController.m b/RiotShareExtension/Modules/Share/Listing/RoomsListViewController.m index 54cf6d0bb..b722dd1ce 100644 --- a/RiotShareExtension/Modules/Share/Listing/RoomsListViewController.m +++ b/RiotShareExtension/Modules/Share/Listing/RoomsListViewController.m @@ -142,7 +142,7 @@ // The selected room is instanciated here. [[ShareExtensionManager sharedManager].fileStore asyncAccountDataOfRoom:recentCellData.roomSummary.roomId success:^(MXRoomAccountData * _Nonnull accountData) { - [[ShareExtensionManager sharedManager].fileStore asyncStateEventsOfRoom:recentCellData.roomSummary.roomId success:^(NSArray * _Nonnull roomStateEvents) { + [[ShareExtensionManager sharedManager].fileStore stateOfRoom:recentCellData.roomSummary.roomId success:^(NSArray * _Nonnull roomStateEvents) { MXSession *session = [[MXSession alloc] initWithMatrixRestClient:[[MXRestClient alloc] initWithCredentials:[ShareExtensionManager sharedManager].userAccount.mxCredentials andOnUnrecognizedCertificateBlock:nil]]; diff --git a/SiriIntents/IntentHandler.m b/SiriIntents/IntentHandler.m index 73dff3153..e6f9a75fe 100644 --- a/SiriIntents/IntentHandler.m +++ b/SiriIntents/IntentHandler.m @@ -222,7 +222,7 @@ // since it's neccesary to send text message through it rather than directly // through MXRestClient due to encryption [fileStore asyncAccountDataOfRoom:roomID success:^(MXRoomAccountData * _Nonnull roomAccountData) { - [fileStore asyncStateEventsOfRoom:roomID success:^(NSArray * _Nonnull stateEvents) { + [fileStore stateOfRoom:roomID success:^(NSArray * _Nonnull stateEvents) { MXSession *session = [[MXSession alloc] initWithMatrixRestClient:account.mxRestClient]; [session setStore:[[MXNoStore alloc] init] success:^{