Skip to main content

compute_joined_rooms

Function compute_joined_rooms 

Source
async fn compute_joined_rooms<T: TransactedSyncV4Queries>(
    transaction: &mut T,
    connection: &ResolvedConnection,
    rooms_timelines: HashMap<OwnedRoomId, SyncedRoomTimeline>,
    rooms_required_states: HashMap<OwnedRoomId, Vec<RoomEvent<Verified>>>,
    rooms_bump_stamps: &HashMap<OwnedRoomId, usize>,
    rooms_to_sync: &HashMap<OwnedRoomId, RoomToSync>,
) -> Result<BTreeMap<OwnedRoomId, Room>, SyncV4Error>
Expand description

Given the timelines of rooms the user is or has been a member of, contextualize each event, and fetch the various other fields needed to compute a [sync_events::v5::response::Room].