mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-19 16:13:42 +02:00
Check for wellknown and account data flag
This commit is contained in:
@@ -80,14 +80,23 @@ struct DeveloperSettingsView: View {
|
||||
.foregroundColor(Color(ThemeService.shared().theme.tintColor))
|
||||
.font(.system(size: 17))
|
||||
}
|
||||
}
|
||||
SwiftUI.Section(header: Text(BWIL10n.bwiSettingsDeveloperIntroduceFederation)) {
|
||||
Button(action: { showIntroduceFederation = true }) {
|
||||
Text(BWIL10n.bwiSettingsDeveloperIntroduceFederation)
|
||||
Text(BWIL10n.bwiSettingsDeveloperIntroduceFederationPreview)
|
||||
.foregroundColor(Color(ThemeService.shared().theme.tintColor))
|
||||
.font(.system(size: 17))
|
||||
}
|
||||
.sheet(isPresented: $showIntroduceFederation) {
|
||||
IntroduceFederationView()
|
||||
.interactiveDismissDisabled()
|
||||
.interactiveDismissDisabled()
|
||||
}
|
||||
if let session = session {
|
||||
Button(action: { BWIAccountNotificationService(mxSession: session).setShowFederationIntroductionFlag(true) }) {
|
||||
Text(BWIL10n.bwiSettingsDeveloperIntroduceFederationReset)
|
||||
.foregroundColor(Color(ThemeService.shared().theme.tintColor))
|
||||
.font(.system(size: 17))
|
||||
}
|
||||
}
|
||||
}
|
||||
if BWIBuildSettings.shared.permalinkPrefixSettings && !BWIBuildSettings.shared.permalinkPrefixes.isEmpty {
|
||||
@@ -139,12 +148,12 @@ struct DeveloperSettingsView: View {
|
||||
|
||||
}
|
||||
|
||||
@available(iOS 14.0, *)
|
||||
struct DeveloperSettingsView_Previews: PreviewProvider {
|
||||
static var previews: some View {
|
||||
DeveloperSettingsView(session: nil)
|
||||
}
|
||||
}
|
||||
//@available(iOS 14.0, *)
|
||||
//struct DeveloperSettingsView_Previews: PreviewProvider {
|
||||
// static var previews: some View {
|
||||
// DeveloperSettingsView(session: nil)
|
||||
// }
|
||||
//}
|
||||
|
||||
// MARK: - Button Actions
|
||||
|
||||
|
||||
Reference in New Issue
Block a user