From 604f75f5c81ba62ffa5edc83c0ae3c3db03d0c05 Mon Sep 17 00:00:00 2001 From: netkas Date: Tue, 25 Mar 2025 12:59:09 -0400 Subject: [PATCH] Update addressBookAddContact method to return contact UUID instead of boolean --- src/Socialbox/SocialClient.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Socialbox/SocialClient.php b/src/Socialbox/SocialClient.php index be4684e..adbdf52 100644 --- a/src/Socialbox/SocialClient.php +++ b/src/Socialbox/SocialClient.php @@ -194,10 +194,10 @@ * * @param PeerAddress|string $peer The address of the peer to add as a contact * @param string|ContactRelationshipType|null $relationship Optional. The relationship for the peer - * @return bool Returns True if the contact was created, False if it already exists + * @return string Returns the contact uuid if the contact was created, False if it already exists * @throws RpcException Thrown if there was an error with the RPC request */ - public function addressBookAddContact(PeerAddress|string $peer, null|string|ContactRelationshipType $relationship=ContactRelationshipType::MUTUAL): bool + public function addressBookAddContact(PeerAddress|string $peer, null|string|ContactRelationshipType $relationship=ContactRelationshipType::MUTUAL): string { if($peer instanceof PeerAddress) {