feat: add reply_to field to messages
This commit is contained in:
parent
b6df1e38ad
commit
f3760af1bb
6 changed files with 20 additions and 1 deletions
|
@ -270,6 +270,7 @@ impl Channel {
|
|||
data: &Data,
|
||||
user_uuid: Uuid,
|
||||
message: String,
|
||||
reply_to: Option<Uuid>,
|
||||
) -> Result<Message, Error> {
|
||||
let message_uuid = Uuid::now_v7();
|
||||
|
||||
|
@ -278,6 +279,7 @@ impl Channel {
|
|||
channel_uuid: self.uuid,
|
||||
user_uuid,
|
||||
message,
|
||||
reply_to,
|
||||
};
|
||||
|
||||
let mut conn = data.pool.get().await?;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue