mirror of
https://gitlab.com/xmpp-rs/xmpp-rs.git
synced 2024-07-12 22:21:53 +00:00
When IQ from field is not set, it's user's own bare JID
This commit is contained in:
parent
141a40bc79
commit
51f2462772
1 changed files with 1 additions and 1 deletions
|
@ -17,7 +17,7 @@ pub async fn handle_iq(agent: &mut Agent, iq: Iq) -> Vec<Event> {
|
|||
let from = iq
|
||||
.from
|
||||
.clone()
|
||||
.unwrap_or_else(|| agent.client.bound_jid().unwrap().clone());
|
||||
.unwrap_or_else(|| agent.client.bound_jid().unwrap().to_bare().into());
|
||||
if let IqType::Get(payload) = iq.payload {
|
||||
get::handle_iq_get(agent, &mut events, from, iq.to, iq.id, payload).await;
|
||||
} else if let IqType::Result(Some(payload)) = iq.payload {
|
||||
|
|
Loading…
Reference in a new issue