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, full.resource,
body.clone(), body.clone(),
), ),
Jid::Bare(bare) => Event::ServiceMessage( Jid::Bare(bare) => {
message.id.clone(), Event::ServiceMessage(message.id.clone(), bare, body.clone())
bare, }
body.clone(),
),
}; };
events.push(event) events.push(event)
} }
MessageType::Chat | MessageType::Normal => { MessageType::Chat | MessageType::Normal => {
let event = Event::ChatMessage( let event =
message.id.clone(), Event::ChatMessage(message.id.clone(), from.clone().into(), body.clone());
from.clone().into(),
body.clone(),
);
events.push(event) events.push(event)
} }
_ => (), _ => (),