From e142add843174f2c76790e9e783cdd3a01df380a Mon Sep 17 00:00:00 2001 From: netkas Date: Tue, 4 Mar 2025 13:41:07 -0500 Subject: [PATCH] Fix incorrect method call for retrieving peer address in EncryptionAcceptChannel --- .../EncryptionChannel/EncryptionAcceptChannel.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Socialbox/Classes/StandardMethods/EncryptionChannel/EncryptionAcceptChannel.php b/src/Socialbox/Classes/StandardMethods/EncryptionChannel/EncryptionAcceptChannel.php index 2fb4d83..7972aed 100644 --- a/src/Socialbox/Classes/StandardMethods/EncryptionChannel/EncryptionAcceptChannel.php +++ b/src/Socialbox/Classes/StandardMethods/EncryptionChannel/EncryptionAcceptChannel.php @@ -183,7 +183,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'); }