mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-26 11:30:50 +02:00
Fix vector-im/element-ios/issues/6004 - Reset home filters when switching tabs.
This commit is contained in:
committed by
Stefan Ceriu
parent
63510b269d
commit
6b78ec6cae
@@ -90,7 +90,16 @@
|
||||
{
|
||||
// Take the lead on the shared data source.
|
||||
recentsDataSource = (RecentsDataSource*)self.dataSource;
|
||||
[recentsDataSource setDelegate:self andRecentsDataSourceMode:RecentsDataSourceModePeople];
|
||||
|
||||
if (recentsDataSource.recentsDataSourceMode != RecentsDataSourceModePeople)
|
||||
{
|
||||
// Take the lead on the shared data source.
|
||||
[recentsDataSource setDelegate:self andRecentsDataSourceMode:RecentsDataSourceModePeople];
|
||||
|
||||
// Reset filtering on the shared data source when switching tabs
|
||||
[recentsDataSource searchWithPatterns:nil];
|
||||
[self.recentsSearchBar setText:nil];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user