xabber-android icon indicating copy to clipboard operation
xabber-android copied to clipboard

Is <composing> message sent?

Open josinalvo opened this issue 8 years ago • 1 comments

Thanks so much for your work on Xabber.

I may have a bug to report, about xep 0085 and the message.

From my tests, it seems that, when a user starts typing on Xabber, Xabber does not send a message stanza with a composing tag to notify the other side of the conversation, as per XEP 0085 (see http://xmpp.org/extensions/xep-0085.html , example 5).

The tests:

  1. Caught pidgin sending the same stanza
  2. Was done with a just-installed Xabber that never had sent messages to that user
  3. Only showed one message stanza: the one with the message itself. There was no preceding message stanza with the tag

The strophe.js code that does I used for testing: function pega(stanza) { if ( stanza.getElementsByTagName('composing').length > 0) { console.log('composing'); } if ( stanza.getElementsByTagName('composing').length === 0) { console.log('NOT composing'); } console.log(stanza) return true; } messenger.connection.addHandler(pega)

Thanks!

josinalvo avatar Apr 15 '16 23:04 josinalvo

Most likely, you do not follow the rules of XEP-0085 and Xabber does not know that the Contact supports chat state notifications

oxoWrk avatar Jun 26 '17 09:06 oxoWrk