mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-05-01 05:36:57 +02:00
Public rooms search: Do not open directory page if the result count is 0 or if the data source is fetching data
This commit is contained in:
@@ -24,6 +24,9 @@
|
||||
|
||||
- (void)render:(PublicRoomsDirectoryDataSource *)publicRoomsDirectoryDataSource
|
||||
{
|
||||
self.userInteractionEnabled = NO;
|
||||
self.chevronImageView.hidden = YES;
|
||||
|
||||
// Show information according to the data source state
|
||||
switch (publicRoomsDirectoryDataSource.state)
|
||||
{
|
||||
@@ -38,6 +41,11 @@
|
||||
publicRoomsDirectoryDataSource.filteredRooms.count,
|
||||
publicRoomsDirectoryDataSource.filter];
|
||||
|
||||
if (publicRoomsDirectoryDataSource.filteredRooms.count)
|
||||
{
|
||||
self.userInteractionEnabled = YES;
|
||||
self.chevronImageView.hidden = NO;
|
||||
}
|
||||
break;
|
||||
|
||||
case MXKDataSourceStateFailed:
|
||||
|
||||
Reference in New Issue
Block a user