Merge pull request #1339 from vector-im/riot_1336

Room directory: "No public rooms available" bug fixes
This commit is contained in:
manuroe
2017-06-22 10:01:35 +02:00
committed by GitHub
2 changed files with 22 additions and 5 deletions
+6 -1
View File
@@ -210,7 +210,12 @@
{
if (indexPath.section == recentsDataSource.directorySection)
{
[self openPublicRoomAtIndexPath:indexPath];
// Sanity check
MXPublicRoom *publicRoom = [recentsDataSource.publicRoomsDirectoryDataSource roomAtIndexPath:indexPath];
if (publicRoom)
{
[self openPublicRoomAtIndexPath:indexPath];
}
}
else
{