I’m using asmack and faced with the next situation:
-
For example, Alice send “composing” event notification to Bob which is currently offline.
-
XMPP server return the error message:
- Smack library calls MessageEventNotificationListener#composingNotification method with "bob@jabber.ru" as “from” parameter value. But Bob is offline and didn’t send this event.
How can I distinguish such wrong events from regualar ones? I have tried to catch such error messages in PacketListener which I use to receive chat messages but it called after MessageEventNotificationListener. I think Smack should not call MessageEventNotificationListener for error messages.