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

Fix edit message notification.

parent 2851fbca
No related merge requests found
......@@ -626,7 +626,7 @@ pub fn edit_message(
doc! { "_id": message.id.clone() },
doc! {
"$set": {
"content": edit.content.clone(),
"content": &edit.content,
"edited": UtcDatetime(edited)
},
"$push": {
......@@ -642,7 +642,7 @@ pub fn edit_message(
notifications::send_message_given_channel(
Notification::message_edit(Edit {
id: message.id.clone(),
content: message.content,
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