fix: ignore address case when comparing the To: field to Autocrypt-Gossip:

This commit is contained in:
link2xt
2023-06-07 16:26:53 +00:00
parent 437f8c48c4
commit 9ab9d2eb7b
3 changed files with 3 additions and 3 deletions

View File

@@ -583,7 +583,7 @@ pub(crate) async fn observe_securejoin_on_other_device(
let addr = Contact::load_from_db(context, contact_id)
.await?
.get_addr()
.to_string();
.to_lowercase();
if mime_message.gossiped_addr.contains(&addr) {
let mut peerstate = match Peerstate::from_addr(context, &addr).await? {
Some(p) => p,