mirror of
https://github.com/vrtmrz/obsidian-livesync.git
synced 2026-09-23 11:07:06 +00:00
Use profile storage for TURN source settings
This commit is contained in:
@@ -72,14 +72,3 @@ export function validateIceServerSourceConfiguration(
|
||||
export function getIceServerSourceDefinition(id: string): IceServerSourceDefinition | undefined {
|
||||
return iceServerSourceDefinitions.find((definition) => definition.id === id);
|
||||
}
|
||||
|
||||
/** Validate the selected settings projection, including an unavailable encrypted source. */
|
||||
export function validateTurnSettings(settings: {
|
||||
readonly P2P_iceServerSource?: IceServerSourceDescriptorLike | null;
|
||||
readonly encryptedP2PIceServerSource?: string;
|
||||
}): string | undefined {
|
||||
if (!settings.P2P_iceServerSource && settings.encryptedP2PIceServerSource) {
|
||||
return "TURN configuration could not be decrypted.";
|
||||
}
|
||||
return validateIceServerSourceConfiguration(settings.P2P_iceServerSource);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user