mirror of
https://github.com/chatmail/core.git
synced 2026-04-26 01:46:34 +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
@@ -1760,7 +1760,8 @@ unsafe fn check_verified_properties(
|
||||
let peerstate = Peerstate::from_addr(context, &context.sql, contact.get_addr());
|
||||
|
||||
if peerstate.is_none()
|
||||
|| contact.is_verified_ex(peerstate.as_ref()) != VerifiedStatus::BidirectVerified
|
||||
|| contact.is_verified_ex(context, peerstate.as_ref())
|
||||
!= VerifiedStatus::BidirectVerified
|
||||
{
|
||||
verify_fail("The sender of this message is not verified.".into());
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user