@@ -76,12 +76,12 @@ @"user": user }, @"password": password }; - [request asyncPerformWithBlock: ^ (mtx_response_t response, - int statusCode, id exception) { + [request performWithBlock: ^ (mtx_response_t response, int statusCode, + id exception) { if (exception != nil) { block(nil, exception); return; } @@ -184,18 +184,18 @@ return [MTXRequest requestWithPath: path accessToken: _accessToken homeserver: _homeserver]; } -- (void)asyncLogOutWithBlock: (mtx_client_logout_block_t)block +- (void)logOutWithBlock: (mtx_client_logout_block_t)block { void *pool = objc_autoreleasePoolPush(); MTXRequest *request = [self requestWithPath: @"/_matrix/client/r0/logout"]; request.method = OF_HTTP_REQUEST_METHOD_POST; - [request asyncPerformWithBlock: ^ (mtx_response_t response, - int statusCode, id exception) { + [request performWithBlock: ^ (mtx_response_t response, int statusCode, + id exception) { if (exception != nil) { block(exception); return; } @@ -211,17 +211,17 @@ }]; objc_autoreleasePoolPop(pool); } -- (void)asyncFetchRoomList: (mtx_client_room_list_block_t)block +- (void)fetchRoomListWithBlock: (mtx_client_room_list_block_t)block { void *pool = objc_autoreleasePoolPush(); MTXRequest *request = [self requestWithPath: @"/_matrix/client/r0/joined_rooms"]; - [request asyncPerformWithBlock: ^ (mtx_response_t response, - int statusCode, id exception) { + [request performWithBlock: ^ (mtx_response_t response, int statusCode, + id exception) { if (exception != nil) { block(nil, exception); return; }