xmpp: rustfmt Message events commits

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
Maxime “pep” Buquet 2023-02-27 00:07:57 +01:00
parent f2a599325e
commit 216d9c4a8d
Signed by: pep
GPG key ID: DEDA74AEECA9D0F2

View file

@ -342,20 +342,15 @@ impl Agent {
full.resource,
body.clone(),
),
Jid::Bare(bare) => Event::ServiceMessage(
message.id.clone(),
bare,
body.clone(),
),
Jid::Bare(bare) => {
Event::ServiceMessage(message.id.clone(), bare, body.clone())
}
};
events.push(event)
}
MessageType::Chat | MessageType::Normal => {
let event = Event::ChatMessage(
message.id.clone(),
from.clone().into(),
body.clone(),
);
let event =
Event::ChatMessage(message.id.clone(), from.clone().into(), body.clone());
events.push(event)
}
_ => (),