mirror of
https://github.com/chatmail/core.git
synced 2026-04-21 07:26:29 +03:00
Remove context refrence from Contact struct
This will allow the Rust Context API to be refactored without breaking
the C API. Full details in #476 aka
a0b5e32f98
This commit is contained in:
committed by
Floris Bruynooghe
parent
5ce27b16f1
commit
aefddf7f5e
@@ -189,7 +189,7 @@ impl Chat {
|
||||
let contacts = get_chat_contacts(context, self.id);
|
||||
if !contacts.is_empty() {
|
||||
if let Ok(contact) = Contact::get_by_id(context, contacts[0]) {
|
||||
return contact.get_profile_image();
|
||||
return contact.get_profile_image(context);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1365,7 +1365,7 @@ pub fn add_contact_to_chat_ex(
|
||||
} else {
|
||||
// else continue and send status mail
|
||||
if chat.typ == Chattype::VerifiedGroup {
|
||||
if contact.is_verified() != VerifiedStatus::BidirectVerified {
|
||||
if contact.is_verified(context) != VerifiedStatus::BidirectVerified {
|
||||
error!(
|
||||
context,
|
||||
"Only bidirectional verified contacts can be added to verified groups."
|
||||
|
||||
Reference in New Issue
Block a user