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

Fix bad check

This commit is contained in:
Pierre HUBERT 2020-06-15 10:53:50 +02:00
parent 203a947122
commit 8527ae9c50
2 changed files with 1 additions and 5 deletions

View File

@ -88,10 +88,7 @@ pub fn update_settings(r: &mut HttpRequestHandler) -> RequestResult {
members.push(r.user_id()?); members.push(r.user_id()?);
} }
conversations_helper::set_members( conversations_helper::set_members(conv_id, &members, is_moderator)?;
conv_id,
&members,
can_everyone_add_members)?;
} }
r.success("Conversation information successfully updated!") r.success("Conversation information successfully updated!")

View File

@ -159,7 +159,6 @@ pub fn set_members(conv_id: u64, new_list: &Vec<UserID>, can_delete: bool) -> Re
if new_list.contains(&member) { if new_list.contains(&member) {
continue; continue;
} }
remove_member(conv_id, member)?; remove_member(conv_id, member)?;
} }
} }