Function finalize_joined_room
Source async fn finalize_joined_room(
services: &Services,
sender_user: &UserId,
filter: &FilterDefinition,
state_events: Vec<PduEvent>,
aggregates: JoinAggregates,
receipt_events: Vec<(OwnedUserId, Raw<AnySyncEphemeralRoomEvent>)>,
heroes: Option<Vec<OwnedUserId>>,
joined_member_count: Option<u64>,
invited_member_count: Option<u64>,
thread_last_reads: Option<&BTreeMap<OwnedEventId, u64>>,
send_notification_count_filter: impl Fn(&UInt) -> bool,
flags: FinalizeJoinFlags,
in_window: impl Fn(u64) -> bool,
prev_batch: Option<PduCount>,
) -> (JoinedRoom, HashSet<OwnedUserId>, HashSet<OwnedUserId>)