mirror of
https://gitlab.com/comunic/comunicapiv3
synced 2025-06-21 00:45:18 +00:00
Propagate an event when deleting a conversation
This commit is contained in:
@ -453,6 +453,9 @@ pub fn delete_conversation(conv: &Conversation) -> ResultBoxError<()> {
|
||||
.cond_conv_id("id", conv.id)
|
||||
.exec()?;
|
||||
|
||||
// Propagate information
|
||||
events_helper::propagate_event(&Event::DeletedConversation(conv.id))?;
|
||||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
@ -44,6 +44,9 @@ pub enum Event<'a> {
|
||||
/// Removed a user from a conversation
|
||||
RemovedUserFromConversation(&'a UserID, ConvID),
|
||||
|
||||
/// Delete a conversation
|
||||
DeletedConversation(ConvID),
|
||||
|
||||
/// Created a new comment
|
||||
NewComment(&'a Comment),
|
||||
|
||||
|
Reference in New Issue
Block a user