Prototype listener class.
Solved problem where messages were not marked as read.