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,
|
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)
|
||||||
}
|
}
|
||||||
_ => (),
|
_ => (),
|
||||||
|
|
Loading…
Reference in a new issue