Skip to main content

current_state_id

Function current_state_id 

Source
async fn current_state_id(
    services: &Services,
    room_id: &RoomId,
    event_type: &StateEventType,
    state_key: &str,
) -> Result<Option<OwnedEventId>>
Expand description

The ID of the event the room’s current state holds under one requested key.

A key the state does not hold is absent; any other failure is logged and returned, since the event it hides may still be due.