mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-05-01 21:56:58 +02:00
Public rooms search: Automatically scroll to the top on each new seach
This commit is contained in:
@@ -680,11 +680,19 @@
|
||||
{
|
||||
[super searchWithPatterns:patternsList];
|
||||
|
||||
if (patternsList && _publicRoomsDirectoryDataSource)
|
||||
if (_publicRoomsDirectoryDataSource)
|
||||
{
|
||||
// Search only on the first pattern
|
||||
// XXX: Why is it an array?
|
||||
_publicRoomsDirectoryDataSource.filter = patternsList[0];
|
||||
if (patternsList)
|
||||
{
|
||||
// Search only on the first pattern
|
||||
// XXX: Why is it an array?
|
||||
_publicRoomsDirectoryDataSource.filter = patternsList[0];
|
||||
}
|
||||
else
|
||||
{
|
||||
_publicRoomsDirectoryDataSource.filter = nil; // = patternsList
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user