forked from jmug/stoatchat
fix: don't return all members on message query / search
This commit is contained in:
@@ -16,7 +16,7 @@ pub async fn req(user: User, target: Ref) -> Result<Value> {
|
||||
}
|
||||
|
||||
if let Channel::Group { recipients, .. } = target {
|
||||
Ok(json!(user.fetch_multiple_users(recipients).await?))
|
||||
Ok(json!(user.fetch_multiple_users(&recipients).await?))
|
||||
} else {
|
||||
Err(Error::InvalidOperation)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user