Add signatureExists method to Contact class and remove unused Cryptography import in ContactManager
Some checks are pending
CI / release_executable (push) Waiting to run
CI / release (push) Waiting to run
CI / debug (push) Waiting to run
CI / debug_executable (push) Waiting to run
CI / check-phpunit (push) Waiting to run
CI / check-phpdoc (push) Waiting to run
CI / generate-phpdoc (push) Blocked by required conditions
CI / test (push) Blocked by required conditions
CI / release-documentation (push) Blocked by required conditions
CI / release-artifacts (push) Blocked by required conditions

This commit is contained in:
netkas 2025-03-22 01:00:20 -04:00
parent f80ab103a9
commit f080775701
Signed by: netkas
GPG key ID: 4D8629441B76E4CC
2 changed files with 12 additions and 1 deletions

View file

@ -8,7 +8,6 @@
use PDO;
use PDOException;
use Socialbox\Classes\Configuration;
use Socialbox\Classes\Cryptography;
use Socialbox\Classes\Database;
use Socialbox\Classes\Validator;
use Socialbox\Enums\Types\ContactRelationshipType;

View file

@ -89,6 +89,18 @@
return $this->knownKeys;
}
public function signatureExists(string $signatureUuid): bool
{
foreach($this->knownKeys as $key)
{
if($key->getUuid() === $signatureUuid)
{
return true;
}
}
return false;
}
/**
* Retrieves the timestamp when the contact was added.
*