From a57ce262fffb9f9cff30479c5ba7ec3b953e878d Mon Sep 17 00:00:00 2001 From: Jasper Hugo Date: Mon, 25 Oct 2021 15:25:14 +0700 Subject: [PATCH] gst-meet now replaces {jid} and {jid_user} with empty strings if no JID The real JID of MUC participants is not always available (noticed in the log of #6) --- gst-meet/src/main.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gst-meet/src/main.rs b/gst-meet/src/main.rs index d2fe817..983479e 100644 --- a/gst-meet/src/main.rs +++ b/gst-meet/src/main.rs @@ -231,15 +231,15 @@ async fn main_inner() -> Result<()> { .jid .as_ref() .map(|jid| jid.to_string()) - .context("missing jid")?, + .unwrap_or_default(), ) .replace( "{jid_user}", participant .jid .as_ref() - .and_then(|jid| jid.node.as_ref()) - .context("jid missing node")?, + .and_then(|jid| jid.node.as_deref()) + .unwrap_or_default(), ) .replace("{participant_id}", &participant.muc_jid.resource) .replace("{nick}", &participant.nick.unwrap_or_default());