mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-22 01:22:46 +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
72f72142ed
commit
e7ea79c2cb
@@ -72,7 +72,16 @@
|
||||
{
|
||||
// Take the lead on the shared data source.
|
||||
recentsDataSource = (RecentsDataSource*)self.dataSource;
|
||||
[recentsDataSource setDelegate:self andRecentsDataSourceMode:RecentsDataSourceModeRooms];
|
||||
|
||||
if (recentsDataSource.recentsDataSourceMode != RecentsDataSourceModeRooms)
|
||||
{
|
||||
// Take the lead on the shared data source.
|
||||
[recentsDataSource setDelegate:self andRecentsDataSourceMode:RecentsDataSourceModeRooms];
|
||||
|
||||
// Reset filtering on the shared data source when switching tabs
|
||||
[recentsDataSource searchWithPatterns:nil];
|
||||
[self.recentsSearchBar setText:nil];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user