mirror of
https://github.com/chatmail/core.git
synced 2026-04-19 22:46:29 +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
@@ -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!(
|
||||
|
||||
Reference in New Issue
Block a user