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'); }