From 158b2caf989f785818c340d5d45ae749b06e6f9d Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Wed, 10 Mar 2021 19:30:58 +0100 Subject: [PATCH] Add missing check --- src/helpers/conversations_helper.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/helpers/conversations_helper.rs b/src/helpers/conversations_helper.rs index 9fd7f7b..c0ef16e 100644 --- a/src/helpers/conversations_helper.rs +++ b/src/helpers/conversations_helper.rs @@ -31,7 +31,7 @@ pub fn create(conv: &NewConversation) -> Res { .ok_or(ExecError::new("missing result conv id!"))?; // Add the creator of the conversation - add_member(conv_id, &conv.owner_id, conv.owner_following, true, &conv.owner_id); + add_member(conv_id, &conv.owner_id, conv.owner_following, true, &conv.owner_id)?; // Add other members to the conversation for member in &conv.members {