feat: add reply_to field to messages
All checks were successful
ci/woodpecker/push/build-and-publish Pipeline was successful
ci/woodpecker/push/publish-docs Pipeline was successful

This commit is contained in:
Radical 2025-07-04 21:42:23 +02:00
parent b6df1e38ad
commit f3760af1bb
6 changed files with 20 additions and 1 deletions

View file

@ -14,6 +14,7 @@ pub struct MessageBuilder {
pub channel_uuid: Uuid,
pub user_uuid: Uuid,
pub message: String,
pub reply_to: Option<Uuid>,
}
impl MessageBuilder {
@ -25,6 +26,7 @@ impl MessageBuilder {
channel_uuid: self.channel_uuid,
user_uuid: self.user_uuid,
message: self.message.clone(),
reply_to: self.reply_to,
user,
})
}
@ -36,5 +38,6 @@ pub struct Message {
channel_uuid: Uuid,
user_uuid: Uuid,
message: String,
reply_to: Option<Uuid>,
user: User,
}