handlers: cargo fmt
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
parent
43c31ed1c3
commit
769939be0a
1 changed files with 8 additions and 7 deletions
|
@ -107,13 +107,14 @@ async fn handle_presence<C: ComponentTrait>(
|
|||
rooms: &mut HashMap<BareJid, Room>,
|
||||
) -> Result<(), Error> {
|
||||
if presence.type_ == PresenceType::None {
|
||||
let muc = presence
|
||||
.payloads
|
||||
.into_iter()
|
||||
.try_for_each(|payload| match Muc::try_from(payload) {
|
||||
Ok(muc) => ControlFlow::Break(muc),
|
||||
_ => ControlFlow::Continue(()),
|
||||
});
|
||||
let muc =
|
||||
presence
|
||||
.payloads
|
||||
.into_iter()
|
||||
.try_for_each(|payload| match Muc::try_from(payload) {
|
||||
Ok(muc) => ControlFlow::Break(muc),
|
||||
_ => ControlFlow::Continue(()),
|
||||
});
|
||||
|
||||
// TODO: Handle presence probes, remove the return here.
|
||||
// TODO: check for features in the Muc element.
|
||||
|
|
Loading…
Reference in a new issue