pub(super) async fn collect(
services: &Services,
sender_user: &UserId,
since: Option<u64>,
next_batch: u64,
filter: &FilterDefinition,
rooms: &Rooms,
) -> Result<BTreeMap<OwnedUserId, UserUpdate>>Expand description
Collects the MSC4429 profile updates for a legacy sync response.
The filter selects fields, with an empty default opting out. Changes and current bases share a user-field set and require current shared membership, except for self. Read failures abort collection before its position can be acknowledged.