Implemented fix for receiving encrypted messages
Merge pull request #1 from Mostey/master

Fix for receiving encrypted messages