mirror of
https://github.com/chatmail/core.git
synced 2026-04-27 10:26:29 +03:00
webrtc-config-setting is just 'webrtc_instance'
This commit is contained in:
@@ -1619,12 +1619,10 @@ pub async fn send_videochat_invitation(context: &Context, chat_id: ChatId) -> Re
|
||||
chat_id
|
||||
);
|
||||
|
||||
let url = if let Some(basic_webrtc_instance) =
|
||||
context.get_config(Config::BasicWebrtcInstance).await
|
||||
{
|
||||
basic_webrtc_instance
|
||||
let url = if let Some(webrtc_instance) = context.get_config(Config::WebrtcInstance).await {
|
||||
webrtc_instance
|
||||
} else {
|
||||
bail!("basic_webrtc_instance not set");
|
||||
bail!("webrtc_instance not set");
|
||||
};
|
||||
|
||||
let room = dc_create_id();
|
||||
|
||||
@@ -123,12 +123,8 @@ pub enum Config {
|
||||
/// because we do not want to send a second warning)
|
||||
NotifyAboutWrongPw,
|
||||
|
||||
/// address to webrtc signaling server (https://github.com/cracker0dks/basicwebrtc)
|
||||
/// that should be used for opening video hangouts.
|
||||
/// This property is only used in the UIs not by the core itself.
|
||||
/// Format: https://example.com/subdir
|
||||
/// The other properties that are needed for a call such as the roomname will be set by the client in the anchor part of the url.
|
||||
BasicWebrtcInstance,
|
||||
/// address to webrtc instance to use for videochats
|
||||
WebrtcInstance,
|
||||
}
|
||||
|
||||
impl Context {
|
||||
|
||||
Reference in New Issue
Block a user