use faker_rand::lorem::Paragraphs; use crate::{ app::App, channel::Channel, clock::RequestedAt, login::Login, message::{self, Body, Message}, }; pub async fn send(app: &App, channel: &Channel, sender: &Login, sent_at: &RequestedAt) -> Message { let body = propose(); app.messages() .send(&channel.id, sender, sent_at, &body) .await .expect("should succeed if the channel exists") } pub fn propose() -> Body { rand::random::().to_string().into() } pub fn fictitious() -> message::Id { message::Id::generate() }