diff --git a/xmpp-parsers/src/iq.rs b/xmpp-parsers/src/iq.rs
index 5b7d5a6f..b9c022f3 100644
--- a/xmpp-parsers/src/iq.rs
+++ b/xmpp-parsers/src/iq.rs
@@ -90,6 +90,16 @@ impl Iq {
}
}
+ /// Creates an empty `` stanza.
+ pub fn empty_result>(to: Jid, id: S) -> Iq {
+ Iq {
+ from: None,
+ to: Some(to),
+ id: id.into(),
+ payload: IqType::Result(None),
+ }
+ }
+
/// Creates an `` stanza containing a result.
pub fn from_result>(id: S, payload: Option) -> Iq {
Iq {