Replace u32 with a PeerstateKeyType enum

This commit is contained in:
Alexander Krotov
2019-11-30 19:18:02 +01:00
parent 694d8fd6fb
commit 3a08c92433
3 changed files with 36 additions and 28 deletions

View File

@@ -691,7 +691,7 @@ fn mark_peer_as_verified(context: &Context, fingerprint: impl AsRef<str>) -> Res
Peerstate::from_fingerprint(context, &context.sql, fingerprint.as_ref())
{
if peerstate.set_verified(
DC_PS_PUBLIC_KEY,
PeerstateKeyType::PublicKey,
fingerprint.as_ref(),
PeerstateVerifiedStatus::BidirectVerified,
) {