fix verifier-by addr was empty string instead of None (#3961)

fix verifier-by addr was empty string intead of None
This commit is contained in:
Simon Laux
2023-01-17 14:06:57 +01:00
committed by GitHub
parent 3cf78749df
commit ed24867309
2 changed files with 5 additions and 1 deletions

View File

@@ -4,6 +4,7 @@
### Fixes
- Securejoin: Fix adding and handling Autocrypt-Gossip headers #3914
- fix verifier-by addr was empty string intead of None #3961
- Emit DC_EVENT_MSGS_CHANGED for DC_CHAT_ID_ARCHIVED_LINK when the number of archived chats with
unread messages increases #3959

View File

@@ -223,7 +223,10 @@ impl Peerstate {
.transpose()
.unwrap_or_default(),
fingerprint_changed: false,
verifier: row.get("verifier")?,
verifier: {
let verifier: Option<String> = row.get("verifier")?;
verifier.filter(|verifier| !verifier.is_empty())
},
};
Ok(res)