Skip to main content

is_better_key

Function is_better_key 

Source
fn is_better_key(
    old: &Raw<KeyBackupData>,
    new: &Raw<KeyBackupData>,
) -> Result<bool>
Expand description

Per MSC1219: prefer verified, then lower first_message_index, then lower forwarded_count; equal on all three keeps the existing key.