mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-05-02 06:06:57 +02:00
Directory section should be displayed by default in Messages when recents list is empty.
related to https://github.com/vector-im/vector-ios/issues/358
This commit is contained in:
@@ -74,7 +74,7 @@
|
||||
sectionsCount = 0;
|
||||
|
||||
_hideRecents = NO;
|
||||
_hidepublicRoomsDirectory = YES;
|
||||
_hidePublicRoomsDirectory = YES;
|
||||
|
||||
shrinkedSectionsBitMask = 0;
|
||||
|
||||
@@ -188,11 +188,16 @@
|
||||
|
||||
#pragma mark -
|
||||
|
||||
- (void)setHidepublicRoomsDirectory:(BOOL)hidepublicRoomsDirectory
|
||||
- (void)setHidePublicRoomsDirectory:(BOOL)hidePublicRoomsDirectory
|
||||
{
|
||||
if (_hidepublicRoomsDirectory != hidepublicRoomsDirectory)
|
||||
if (_hidePublicRoomsDirectory != hidePublicRoomsDirectory)
|
||||
{
|
||||
_hidepublicRoomsDirectory = hidepublicRoomsDirectory;
|
||||
_hidePublicRoomsDirectory = hidePublicRoomsDirectory;
|
||||
|
||||
if (!_hidePublicRoomsDirectory)
|
||||
{
|
||||
[self.publicRoomsDirectoryDataSource refreshPublicRooms];
|
||||
}
|
||||
|
||||
[self refreshRoomsSectionsAndReload];
|
||||
}
|
||||
@@ -605,7 +610,7 @@
|
||||
directorySection = favoritesSection = conversationSection = lowPrioritySection = invitesSection = -1;
|
||||
sectionsCount = 0;
|
||||
|
||||
if (!_hidepublicRoomsDirectory)
|
||||
if (!_hidePublicRoomsDirectory)
|
||||
{
|
||||
// The public rooms directory cell is then visible whatever the search activity.
|
||||
directorySection = sectionsCount++;
|
||||
|
||||
Reference in New Issue
Block a user