Skip to main content

resolve_assertion

Function resolve_assertion 

Source
pub fn resolve_assertion(
    conn: &mut Connection,
    nick: &str,
    cred_ref: &str,
    now_ms: i64,
) -> Result<Resolved, MatrixError>
Expand description

Resolve a verified assertion: find the identity by nick, else by the credential’s device (the product renamed the nick; follow it softly), else create it. Creation IS first contact: the Matrix user is made and the localpart frozen in the same transaction. Then the credential’s device.