fix places where string-cmp was used instead of addr_cmp() for email-address-comparison

This commit is contained in:
B. Petersen
2019-11-28 17:29:00 +01:00
committed by Floris Bruynooghe
parent 81d069209c
commit 4e6d0c9c69
3 changed files with 4 additions and 4 deletions

View File

@@ -1488,7 +1488,7 @@ pub(crate) fn add_contact_to_chat_ex(
let self_addr = context
.get_config(Config::ConfiguredAddr)
.unwrap_or_default();
if contact.get_addr() == &self_addr {
if addr_cmp(contact.get_addr(), &self_addr) {
// ourself is added using DC_CONTACT_ID_SELF, do not add this address explicitly.
// if SELF is not in the group, members cannot be added at all.
warn!(