mirror of
https://gitlab.com/comunic/comunicapiv3
synced 2024-11-26 15:29:21 +00:00
Fix bad check
This commit is contained in:
parent
203a947122
commit
8527ae9c50
@ -88,10 +88,7 @@ pub fn update_settings(r: &mut HttpRequestHandler) -> RequestResult {
|
||||
members.push(r.user_id()?);
|
||||
}
|
||||
|
||||
conversations_helper::set_members(
|
||||
conv_id,
|
||||
&members,
|
||||
can_everyone_add_members)?;
|
||||
conversations_helper::set_members(conv_id, &members, is_moderator)?;
|
||||
}
|
||||
|
||||
r.success("Conversation information successfully updated!")
|
||||
|
@ -159,7 +159,6 @@ pub fn set_members(conv_id: u64, new_list: &Vec<UserID>, can_delete: bool) -> Re
|
||||
if new_list.contains(&member) {
|
||||
continue;
|
||||
}
|
||||
|
||||
remove_member(conv_id, member)?;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user