Skip to content
Snippets Groups Projects
Verified Commit 3bca53c6 authored by insert's avatar insert
Browse files

Include channel id and author in edit packets.

parent 0bd711aa
No related merge requests found
......@@ -12,6 +12,8 @@ pub struct Create {
#[derive(Serialize, Deserialize, Debug, Clone)]
pub struct Edit {
pub id: String,
pub channel: String,
pub author: String,
pub content: String,
}
......
......@@ -642,6 +642,8 @@ pub fn edit_message(
notifications::send_message_given_channel(
Notification::message_edit(Edit {
id: message.id.clone(),
channel: target.id.clone(),
author: message.author.clone(),
content: edit.content.clone(),
}),
&target,
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment