refactor(quark): port member_edit, member_experimental_query, member_fetch_all, member_remove, permissions_set_default, permissions_set

#283
This commit is contained in:
Paul Makles
2024-04-07 21:35:45 +01:00
parent 03340a2b5a
commit 9de963fb56
14 changed files with 308 additions and 216 deletions

View File

@@ -28,13 +28,7 @@ pub async fn fetch_members(
if let Channel::Group { recipients, .. } = channel {
Ok(Json(
join_all(
db.fetch_users(&recipients)
.await?
.into_iter()
.map(|other_user| other_user.into_known(&user)),
)
.await,
User::fetch_many_ids_as_mutuals(db, &user, &recipients).await?,
))
} else {
Err(create_error!(InvalidOperation))