1
0
mirror of https://gitlab.com/comunic/comunicapiv3 synced 2024-12-27 22:18:51 +00:00

Propagate an event when deleting a conversation message

This commit is contained in:
Pierre HUBERT 2021-02-06 10:07:02 +01:00
parent 6762e291d3
commit 0ce59fc5ad

View File

@ -360,7 +360,14 @@ pub fn handle_event(e: &events_helper::Event) -> Res {
)?;
}
Event::DeleteConversationMessage(msg) => {}
Event::DeleteConversationMessage(msg) => {
user_ws_controller::send_message_to_specific_connections(
|f| f.conversations.contains(&msg.conv_id),
|_| UserWsMessage::no_id_message("deleted_conv_message", ConversationMessageAPI::new(msg)),
None::<fn(&_) -> _>,
)?;
}
_ => {}
}