Skip to content

Commit

Permalink
Don't mention monal in settings and hide turn fallback for quicksy
Browse files Browse the repository at this point in the history
  • Loading branch information
tmolitor-stud-tu committed Aug 24, 2024
1 parent 977e539 commit 115b876
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Monal/Classes/GeneralSettings.swift
Original file line number Diff line number Diff line change
Expand Up @@ -389,12 +389,19 @@ struct PrivacySettingsSubview: View {
Section(header: Text("Misc")) {
SettingsToggle(isOn: $generalSettingsDefaultsDB.allowVersionIQ) {
Text("Publish version")
#if IS_QUICKSY
Text("Allow contacts in your contact list to query your Quicksy and iOS versions.")
#else
Text("Allow contacts in your contact list to query your Monal and iOS versions.")
#endif
}
//the quicksy.im server always has a proper TURN server, no need for this setting there
#if !IS_QUICKSY
SettingsToggle(isOn: $generalSettingsDefaultsDB.webrtcUseFallbackTurn) {
Text("Calls: Allow TURN fallback to Monal-Servers")
Text("This will make calls possible even if your XMPP server does not provide a TURN server.")
}
#endif
}
}
}
Expand Down
4 changes: 4 additions & 0 deletions Monal/Classes/MLXMPPManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,11 @@ -(void) defaultSettings

// add STUN / TURN settings
[self upgradeBoolUserSettingsIfUnset:@"webrtcAllowP2P" toDefault:YES];
#ifdef IS_QUICKSY
[self upgradeBoolUserSettingsIfUnset:@"webrtcUseFallbackTurn" toDefault:NO];
#else
[self upgradeBoolUserSettingsIfUnset:@"webrtcUseFallbackTurn" toDefault:YES];
#endif

//jabber:iq:version
[self upgradeBoolUserSettingsIfUnset:@"allowVersionIQ" toDefault:YES];
Expand Down

0 comments on commit 115b876

Please sign in to comment.