Port message sending

This commit is contained in:
Joscha 2022-07-20 20:37:31 +02:00
parent 98f51a5a2e
commit 066ea0cb07
4 changed files with 122 additions and 92 deletions

View file

@ -304,13 +304,13 @@ impl EuphRoom {
}
}
// if let Some((parent, content)) = self
// .chat
// .handle_messaging(terminal, crossterm_lock, event)
// .await
// {
// let _ = room.send(parent, content);
// }
let potential_message = self
.chat
.handle_messaging(terminal, crossterm_lock, event)
.await;
if let Some((parent, content)) = potential_message {
let _ = room.send(parent, content);
}
}
}
}