mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-05-03 14:46:56 +02:00
Directory item in search doesn't open the directory if I don't search
https://github.com/vector-im/vector-ios/issues/353
This commit is contained in:
@@ -82,10 +82,14 @@ double const kPublicRoomsDirectoryDataExpiration = 10;
|
||||
// Do not refresh data if it is not too old
|
||||
if (lastRefreshDate && -lastRefreshDate.timeIntervalSinceNow < kPublicRoomsDirectoryDataExpiration)
|
||||
{
|
||||
// Apply the new filter on the current data
|
||||
[self refreshFilteredPublicRooms];
|
||||
|
||||
[self setState:MXKDataSourceStateReady];
|
||||
// Do not disturb the current request if any
|
||||
if (!publicRoomsRequest)
|
||||
{
|
||||
// Apply the new filter on the current data
|
||||
[self refreshFilteredPublicRooms];
|
||||
|
||||
[self setState:MXKDataSourceStateReady];
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -132,6 +136,7 @@ double const kPublicRoomsDirectoryDataExpiration = 10;
|
||||
[self setState:MXKDataSourceStateReady];
|
||||
|
||||
} failure:^(NSError *error) {
|
||||
|
||||
NSLog(@"[PublicRoomsDirectoryDataSource] Failed to fecth public rooms.");
|
||||
|
||||
[self setState:MXKDataSourceStateFailed];
|
||||
@@ -141,6 +146,7 @@ double const kPublicRoomsDirectoryDataExpiration = 10;
|
||||
|
||||
// Alert user
|
||||
[[AppDelegate theDelegate] showErrorAsAlert:error];
|
||||
|
||||
}];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user