1
0
mirror of https://gitlab.com/comunic/comunicapiv3 synced 2024-11-22 13:29:21 +00:00

Send a message when updating conversation message

This commit is contained in:
Pierre HUBERT 2021-02-06 09:58:25 +01:00
parent de2448d496
commit 6762e291d3

View File

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