mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-22 01:22:46 +02:00
refactoring get federation status
This commit is contained in:
@@ -605,8 +605,23 @@ BOOL reloadToggleCell = false;
|
||||
[tmpSections addObject:[self sectionForAccessSwitch]];
|
||||
}
|
||||
|
||||
if ( BWIBuildSettings.shared.isFederationEnabled && !mxRoom.isDirect){
|
||||
[tmpSections addObject:[self sectionForFederationSwitch]];
|
||||
if (BWIBuildSettings.shared.isFederationEnabled)
|
||||
{
|
||||
// Do not show federation settings for DMs
|
||||
if (!mxRoom.isDirect)
|
||||
{
|
||||
// Do not show federation settings for personal note room
|
||||
if (!mxRoom.isPersonalNotesRoom)
|
||||
{
|
||||
// Show federation settings if "isFederated" flag is true (default == true)
|
||||
[mxRoom getFederatedFlagWithCompletion:^(BOOL isFederated) {
|
||||
if (isFederated)
|
||||
{
|
||||
[tmpSections addObject:[self sectionForFederationSwitch]];
|
||||
}
|
||||
}];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (RiotSettings.shared.roomSettingsScreenAllowChangingHistorySettings)
|
||||
|
||||
Reference in New Issue
Block a user