fixed logic around markign messages as read
Merge pull request #72 from thequbit/master

fixed logic around markign messages as read