Added method in sessionlistener for sent messages