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

Add missing check

This commit is contained in:
Pierre HUBERT 2021-03-10 19:30:58 +01:00
parent d9ac134da0
commit 158b2caf98

View File

@ -31,7 +31,7 @@ pub fn create(conv: &NewConversation) -> Res<ConvID> {
.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 {