xmpp: rustfmt Message events commits
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
parent
f2a599325e
commit
216d9c4a8d
1 changed files with 5 additions and 10 deletions
|
@ -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)
|
||||
}
|
||||
_ => (),
|
||||
|
|
Loading…
Reference in a new issue