mirror of
https://gitlab.com/comunic/comunicapiv3
synced 2024-11-26 15:29:21 +00:00
Propagate an event when deleting a conversation message
This commit is contained in:
parent
6762e291d3
commit
0ce59fc5ad
@ -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(&_) -> _>,
|
||||||
|
)?;
|
||||||
|
}
|
||||||
|
|
||||||
_ => {}
|
_ => {}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user