Skip to content
This repository has been archived by the owner on Dec 12, 2022. It is now read-only.

Support pagination in the Space Summary API #932

Merged
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion MatrixKit/Models/RoomList/MXKSessionRecentsDataSource.m
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ -(void)updateSuggestedRooms
{
NSString *currentSpaceId = self.currentSpace.spaceId;
MXWeakify(self);
[self.mxSession.spaceService getSpaceChildrenForSpaceWithId:currentSpaceId suggestedOnly:YES limit:5 success:^(MXSpaceChildrenSummary * _Nonnull childrenSummary) {
[self.mxSession.spaceService getSpaceChildrenForSpaceWithId:currentSpaceId suggestedOnly:YES limit:5 maxDepth:1 from:nil success:^(MXSpaceChildrenSummary * _Nonnull childrenSummary) {
MXLogDebug(@"[MXKSessionRecentsDataSource] getSpaceChildrenForSpaceWithId %@: %ld found", self.currentSpace.spaceId, childrenSummary.childInfos.count);
MXStrongifyAndReturnIfNil(self);
self->lastSuggestedRooms[currentSpaceId] = childrenSummary.childInfos;
Expand Down
1 change: 1 addition & 0 deletions changelog.d/4893.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Moved from /space to /hierarchy API to support pagination