[Spaces] Show spaces in left panel #4509

- filter rooms using `MXSpaceService` new API
This commit is contained in:
Gil Eluard 2021-07-27 19:53:41 +02:00
parent a80249f4f2
commit 8d6bdb7e8c

View file

@ -1170,7 +1170,6 @@ NSString *const kRecentsDataSourceTapOnDirectoryServerChange = @"kRecentsDataSou
for (NSUInteger index = 0; index < count; index++)
{
id<MXKRecentCellDataStoring> cell = [recentsDataSource cellDataAtIndex:index];
// if (self.currentSpace == nil || [self.currentSpace isRoomAChildWithRoomId:cell.roomSummary.roomId])
if (self.currentSpace == nil || [self.mxSession.spaceService isRoomWithId:cell.roomSummary.roomId descendantOf:self.currentSpace.spaceId])
{
[cells addObject:cell];