PublicRoomsDirectoryDataSource: Fix search when NSFW filter is off.

This commit is contained in:
SBiOSoftWhare
2021-04-20 11:30:14 +02:00
parent 219cdc5df5
commit 27f21e58f3
@@ -261,7 +261,7 @@ static NSString *const kNSFWKeyword = @"nsfw";
[self->rooms addObjectsFromArray:publicRooms];
self->nextBatch = publicRoomsResponse.nextBatch;
if (!self->_searchPattern || !self.showNSFWRooms)
if (!self->_searchPattern)
{
// When there is no search, we can use totalRoomCountEstimate returned by the server
self->_roomsCount = publicRoomsResponse.totalRoomCountEstimate;