mirror of
https://github.com/chatmail/core.git
synced 2026-04-21 15:36:30 +03:00
fix places where string-cmp was used instead of addr_cmp() for email-address-comparison
This commit is contained in:
committed by
Floris Bruynooghe
parent
81d069209c
commit
4e6d0c9c69
@@ -272,7 +272,7 @@ impl Contact {
|
||||
.get_config(Config::ConfiguredAddr)
|
||||
.unwrap_or_default();
|
||||
|
||||
if addr_normalized == addr_self {
|
||||
if addr_cmp(addr_normalized, addr_self) {
|
||||
return DC_CONTACT_ID_SELF;
|
||||
}
|
||||
|
||||
@@ -309,7 +309,7 @@ impl Contact {
|
||||
.get_config(Config::ConfiguredAddr)
|
||||
.unwrap_or_default();
|
||||
|
||||
if addr == addr_self {
|
||||
if addr_cmp(addr, addr_self) {
|
||||
return Ok((DC_CONTACT_ID_SELF, sth_modified));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user