From 90324072b1c04e5052d3cbaaa268ea1022438366 Mon Sep 17 00:00:00 2001 From: netkas Date: Tue, 4 Mar 2025 13:41:22 -0500 Subject: [PATCH] Fix incorrect method call for retrieving peer address in EncryptionDeclineChannel --- .../EncryptionChannel/EncryptionDeclineChannel.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Socialbox/Classes/StandardMethods/EncryptionChannel/EncryptionDeclineChannel.php b/src/Socialbox/Classes/StandardMethods/EncryptionChannel/EncryptionDeclineChannel.php index d99c483..a93b3fa 100644 --- a/src/Socialbox/Classes/StandardMethods/EncryptionChannel/EncryptionDeclineChannel.php +++ b/src/Socialbox/Classes/StandardMethods/EncryptionChannel/EncryptionDeclineChannel.php @@ -162,7 +162,7 @@ { return $rpcRequest->produceError(StandardError::NOT_FOUND, 'The requested encryption channel was not found'); } - elseif($encryptionChannel->getReceivingPeerAddress() !== $receivingPeer->getAddress()) + elseif($encryptionChannel->getReceivingPeerAddress() !== $receivingPeer->getPeerAddress()) { return $rpcRequest->produceError(StandardError::UNAUTHORIZED, 'The requested encryption channel is not accessible'); }