mirror of
https://gitlab.com/xmpp-rs/xmpp-rs.git
synced 2024-07-12 22:21:53 +00:00
jingle_ft: Correctly insert <range/> in <file/>.
This commit is contained in:
parent
655fc9ae68
commit
fb27b6225c
1 changed files with 1 additions and 4 deletions
|
@ -166,10 +166,7 @@ impl From<File> for Element {
|
||||||
.build());
|
.build());
|
||||||
}
|
}
|
||||||
if let Some(range) = file.range {
|
if let Some(range) = file.range {
|
||||||
root.append_child(Element::builder("range")
|
root.append_child(range.into());
|
||||||
.ns(ns::JINGLE_FT)
|
|
||||||
.append(range)
|
|
||||||
.build());
|
|
||||||
}
|
}
|
||||||
for hash in file.hashes {
|
for hash in file.hashes {
|
||||||
root.append_child(hash.into());
|
root.append_child(hash.into());
|
||||||
|
|
Loading…
Reference in a new issue