diff --git a/src/helpers/conversations_helper.rs b/src/helpers/conversations_helper.rs index 97320fe..364f281 100644 --- a/src/helpers/conversations_helper.rs +++ b/src/helpers/conversations_helper.rs @@ -128,7 +128,7 @@ pub fn can_everyone_add_members(conv_id: u64) -> ResultBoxError { database::QueryInfo::new(CONV_LIST_TABLE) .cond_u64("id", conv_id) .add_field("can_everyone_add_members") - .query_row(|f|f.get_legacy_bool("can_everyone_add_members")) + .query_row(|f| f.get_legacy_bool("can_everyone_add_members")) } /// Set whether a user is following a conversation or not @@ -153,6 +153,7 @@ pub fn set_members(conv_id: u64, new_list: &Vec, can_delete: bool) -> Re add_member(conv_id, member.clone(), true)?; } + // Remove a member if can_delete { for member in curr_list { if new_list.contains(&member) {