mirror of
https://gitlab.com/xmpp-rs/xmpp-rs.git
synced 2024-07-12 22:21:53 +00:00
Run cargo fmt
This commit is contained in:
parent
4f8ce0a953
commit
a21cd76b5d
1 changed files with 5 additions and 1 deletions
|
@ -17,7 +17,11 @@ pub async fn handle_message_group_chat(
|
||||||
let langs: Vec<&str> = agent.lang.iter().map(String::as_str).collect();
|
let langs: Vec<&str> = agent.lang.iter().map(String::as_str).collect();
|
||||||
|
|
||||||
if let Some((_lang, subject)) = message.get_best_subject(langs.clone()) {
|
if let Some((_lang, subject)) = message.get_best_subject(langs.clone()) {
|
||||||
events.push(Event::RoomSubject(from.to_bare(), from.resource_str().map(String::from), subject.0.clone()));
|
events.push(Event::RoomSubject(
|
||||||
|
from.to_bare(),
|
||||||
|
from.resource_str().map(String::from),
|
||||||
|
subject.0.clone(),
|
||||||
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
if let Some((_lang, body)) = message.get_best_body(langs) {
|
if let Some((_lang, body)) = message.get_best_body(langs) {
|
||||||
|
|
Loading…
Reference in a new issue