mirror of
https://github.com/chatmail/core.git
synced 2026-05-19 23:06:32 +03:00
Improve Chat.get_encryption_info() format
Group contacts by peerstate and make it easier to find contacts that prevent encryption by sorting them to the top of the list.
This commit is contained in:
@@ -889,7 +889,7 @@ impl Contact {
|
||||
};
|
||||
|
||||
ret += &format!(
|
||||
"{}\n{}:",
|
||||
"{}.\n{}:",
|
||||
stock_message,
|
||||
stock_str::finger_prints(context).await
|
||||
);
|
||||
@@ -1961,7 +1961,7 @@ mod tests {
|
||||
.await?;
|
||||
|
||||
let encrinfo = Contact::get_encrinfo(&alice, contact_bob_id).await?;
|
||||
assert_eq!(encrinfo, "No encryption.");
|
||||
assert_eq!(encrinfo, "No encryption");
|
||||
|
||||
let bob = TestContext::new_bob().await;
|
||||
let chat_alice = bob
|
||||
|
||||
Reference in New Issue
Block a user