use faker_rand::lorem::Paragraphs; use crate::{ app::App, channel::Channel, clock::RequestedAt, message::{self, Body, Message}, user::User, }; pub async fn send(app: &App, channel: &Channel, sender: &User, 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() }