mirror of
https://github.com/chatmail/core.git
synced 2026-04-27 18:36:30 +03:00
Rename handle_degrade_event into handle_fingerprint_change
This commit is contained in:
committed by
holger krekel
parent
2feecbc9ff
commit
9810e5562a
@@ -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!(
|
||||
|
||||
Reference in New Issue
Block a user