Rename handle_degrade_event into handle_fingerprint_change

This commit is contained in:
Alexander Krotov
2020-08-13 22:56:40 +03:00
committed by holger krekel
parent 2feecbc9ff
commit 9810e5562a
3 changed files with 4 additions and 4 deletions

View File

@@ -255,7 +255,7 @@ impl<'a> Peerstate<'a> {
}
/// Adds a warning to the chat corresponding to peerstate if fingerprint has changed.
pub(crate) async fn handle_degrade_event(&self, context: &Context) -> Result<()> {
pub(crate) async fn handle_fingerprint_change(&self, context: &Context) -> Result<()> {
if self.fingerprint_changed {
if let Some(contact_id) = context
.sql
@@ -554,7 +554,7 @@ mod tests {
verified_key: None,
verified_key_fingerprint: None,
to_save: Some(ToSave::All),
fingerint_changed: false,
fingerprint_changed: false,
};
assert!(