powered by Jive Software

newOutgoingMessage not working

Hello.
I have a next code:

mChatManager.addIncomingListener(this);
mChatManager.addOutgoingListener(this);
mPrivateChat = mChatManager.chatWith(JidCreate.entityBareFrom(mChatItem.getJid()));

so when a client send message i have this message in newIncomingMessage calback method.
But when i send a message method newOutgoingMessage not invoking.

This is the same issue as described in Smack 4.2.0 OutgoingChatMessageListener is not getting any call

Which Smack version do you use? As Paul said in Smack 4.2.0 OutgoingChatMessageListener is not getting any call, make sure that the outgoing message has its ‘to’ attribute set.