diff --git a/src/Socialbox/SocialClient.php b/src/Socialbox/SocialClient.php index a530347..8cbf420 100644 --- a/src/Socialbox/SocialClient.php +++ b/src/Socialbox/SocialClient.php @@ -546,23 +546,6 @@ )->getResponse()->getResult(); } - /** - * Checks if an encryption channel exists for the given channel UUID. - * - * @param string $channelUuid The UUID of the channel to check. - * - * @return bool True if an encryption channel exists, false otherwise. - * @throws RpcException Thrown if there was an error with the RPC request. - */ - public function encryptionChannelExists(string $channelUuid): bool - { - return $this->sendRequest( - new RpcRequest(StandardMethods::ENCRYPTION_CHANNEL_EXISTS, parameters: [ - 'channel_uuid' => $channelUuid - ]) - )->getResponse()->getResult(); - } - /** * Acknowledges an encrypted message in a specific channel. * @@ -594,7 +577,7 @@ } /** - * Acknowledges messages in an encryption channel. + * Acknowledges multiple messages in an encryption channel by sending multiple requests at once * * @param string $channelUuid The UUID of the encryption channel. * @param array $messageUuids An array of message UUIDs to acknowledge. @@ -615,6 +598,23 @@ ]), $messageUuids), $identifiedAs); } + /** + * Checks if an encryption channel exists for the given channel UUID. + * + * @param string $channelUuid The UUID of the channel to check. + * + * @return bool True if an encryption channel exists, false otherwise. + * @throws RpcException Thrown if there was an error with the RPC request. + */ + public function encryptionChannelExists(string $channelUuid): bool + { + return $this->sendRequest( + new RpcRequest(StandardMethods::ENCRYPTION_CHANNEL_EXISTS, parameters: [ + 'channel_uuid' => $channelUuid + ]) + )->getResponse()->getResult(); + } + /** * Rejects a message from the encryption channel *