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)
This commit is contained in:
parent
c6292caff5
commit
a57ce262ff
|
@ -231,15 +231,15 @@ async fn main_inner() -> Result<()> {
|
||||||
.jid
|
.jid
|
||||||
.as_ref()
|
.as_ref()
|
||||||
.map(|jid| jid.to_string())
|
.map(|jid| jid.to_string())
|
||||||
.context("missing jid")?,
|
.unwrap_or_default(),
|
||||||
)
|
)
|
||||||
.replace(
|
.replace(
|
||||||
"{jid_user}",
|
"{jid_user}",
|
||||||
participant
|
participant
|
||||||
.jid
|
.jid
|
||||||
.as_ref()
|
.as_ref()
|
||||||
.and_then(|jid| jid.node.as_ref())
|
.and_then(|jid| jid.node.as_deref())
|
||||||
.context("jid missing node")?,
|
.unwrap_or_default(),
|
||||||
)
|
)
|
||||||
.replace("{participant_id}", &participant.muc_jid.resource)
|
.replace("{participant_id}", &participant.muc_jid.resource)
|
||||||
.replace("{nick}", &participant.nick.unwrap_or_default());
|
.replace("{nick}", &participant.nick.unwrap_or_default());
|
||||||
|
|
Loading…
Reference in New Issue