mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 21:33:26 +00:00
Add a link to the global settings in the room notifications settings (#1433)
This commit is contained in:
+5
@@ -71,6 +71,11 @@ struct RoomNotificationSettingsScreen: View {
|
||||
.compoundFormSectionHeader()
|
||||
} footer: {
|
||||
Text(context.viewState.strings.customSettingFootnote)
|
||||
.environment(\.openURL, OpenURLAction { url in
|
||||
guard url == context.viewState.strings.customSettingFootnoteLink else { return .discarded }
|
||||
context.send(viewAction: .customSettingFootnoteLinkTapped)
|
||||
return .handled
|
||||
})
|
||||
.compoundFormSectionFooter()
|
||||
}
|
||||
.compoundFormSection()
|
||||
|
||||
Reference in New Issue
Block a user