mirror of
https://github.com/chatmail/core.git
synced 2026-04-25 01:16:29 +03:00
show error if webrtc_instance is empty
This commit is contained in:
@@ -1620,7 +1620,11 @@ pub async fn send_videochat_invitation(context: &Context, chat_id: ChatId) -> Re
|
|||||||
);
|
);
|
||||||
|
|
||||||
let instance = if let Some(instance) = context.get_config(Config::WebrtcInstance).await {
|
let instance = if let Some(instance) = context.get_config(Config::WebrtcInstance).await {
|
||||||
instance
|
if !instance.is_empty() {
|
||||||
|
instance
|
||||||
|
} else {
|
||||||
|
bail!("webrtc_instance is empty");
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
bail!("webrtc_instance not set");
|
bail!("webrtc_instance not set");
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user