powered by Jive Software

Error in AutoReceipt to GroupChat

android

#1

Smack Version 4.3.1

I have set DeliveryReceiptManager.setDefaultAutoReceiptMode(DeliveryReceiptManager.AutoReceiptMode.always).

It works fine for One to One message.

For group chat it is sending wrong stanza and server is throwing error.

Automatically generated Acknowledgement is this:

<message to='mygroup@conference.mydomain.com/sunish@mydomain.com' id='gQQrY-407' type='groupchat'`><`received xmlns='urn:xmpp:receipts' id='G16c789eb-51d2-40c0-9247-3e2c41edcb00'/`></message>`

Error thrown by Ejabberd Server is this:

`<`message xml:lang='en' to='sunish@mydomain.com/SmackClientV1' from='mygroup@conference.mydomain.com/sunish@mydomain.com' type='error' id='gQQrY-407'`>
  <`received xmlns='urn:xmpp:receipts' id='G16c789eb-51d2-40c0-9247-3e2c41edcb00'/>
  <error code='400' type='modify'`>
    <`bad-request xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'/`>
    <`text xml:lang='en' xmlns='urn:ietf:params:xml:ns:xmpp-stanzas'`>`
      It is not allowed to send private messages of type &quot;groupchat&quot;`
    <`/text`>
  <`/error`>
<`/message`>`

#2

Thanks for reporting. I have created SMACK-850.