Cleanup a1ae45add8 a bit.
This commit is contained in:
parent
cdf80c8979
commit
ff77f6141f
18 changed files with 97 additions and 174 deletions
|
|
@ -324,18 +324,14 @@ impl From<Presence> for Element {
|
|||
},
|
||||
)
|
||||
.append(status)
|
||||
.build()
|
||||
})
|
||||
)
|
||||
.append_all((if presence.priority == 0 {
|
||||
.append_all(if presence.priority == 0 {
|
||||
None
|
||||
} else {
|
||||
Some(
|
||||
Element::builder("priority")
|
||||
.append(format!("{}", presence.priority))
|
||||
.build()
|
||||
)
|
||||
}).into_iter())
|
||||
Some(Element::builder("priority")
|
||||
.append(format!("{}", presence.priority)))
|
||||
})
|
||||
.append_all(presence.payloads.into_iter())
|
||||
.build()
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue