Skip to main content

update_stale_rooms

Function update_stale_rooms 

Source
async fn update_stale_rooms<T: TransactedSyncV4Queries>(
    transaction: &mut T,
    connection: &ResolvedConnection,
    stale_rooms: Vec<OwnedRoomId>,
) -> Result<(), DatabaseError>
Expand description

Update the previous position’s rooms to PREVIOUSLY(prev_events_stream_id) if any.

This helper is callable even if there is nothing to update (i.e. stale_rooms is empty).