From e0d2022438ad7ff7113b9f47426f6e8f22ce4ddf Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Sun, 7 Mar 2021 15:52:14 +0100 Subject: [PATCH] Send message when a user create a conversation --- src/helpers/conversations_helper.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/helpers/conversations_helper.rs b/src/helpers/conversations_helper.rs index 8590d56..59d832d 100644 --- a/src/helpers/conversations_helper.rs +++ b/src/helpers/conversations_helper.rs @@ -69,6 +69,10 @@ pub fn add_member(conv_id: ConvID, user_id: &UserID, following: bool, admin: boo }), ) )?; + } else { + send_message(&NewConversationMessage::new_server_message( + conv_id, ConversationServerMessageType::UserCreatedConversation(user_id.clone()), + ))?; } Ok(())