forked from jmug/stoatchat
Include channel id and author in edit packets.
This commit is contained in:
@@ -12,6 +12,8 @@ pub struct Create {
|
|||||||
#[derive(Serialize, Deserialize, Debug, Clone)]
|
#[derive(Serialize, Deserialize, Debug, Clone)]
|
||||||
pub struct Edit {
|
pub struct Edit {
|
||||||
pub id: String,
|
pub id: String,
|
||||||
|
pub channel: String,
|
||||||
|
pub author: String,
|
||||||
pub content: String,
|
pub content: String,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -642,6 +642,8 @@ pub fn edit_message(
|
|||||||
notifications::send_message_given_channel(
|
notifications::send_message_given_channel(
|
||||||
Notification::message_edit(Edit {
|
Notification::message_edit(Edit {
|
||||||
id: message.id.clone(),
|
id: message.id.clone(),
|
||||||
|
channel: target.id.clone(),
|
||||||
|
author: message.author.clone(),
|
||||||
content: edit.content.clone(),
|
content: edit.content.clone(),
|
||||||
}),
|
}),
|
||||||
&target,
|
&target,
|
||||||
|
|||||||
Reference in New Issue
Block a user