handlers: cargo fmt

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
Maxime “pep” Buquet 2022-09-12 00:23:53 +02:00
parent 43c31ed1c3
commit 769939be0a

View file

@ -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.