AnsweredAssumed Answered

Smack does not support MUCItem's actor 'nick' attribute

Question asked by JD on Aug 11, 2015
Latest reply on Aug 12, 2015 by Flow

Hi,

I am using Smack 4.1.2 to implement a messaging App in Android.

Now, I'm having problems when implementing the Ban functionality.

Given the following example Stanza(from XEP-0045: Multi-User Chat ) below:

 

<presence
   
from='southampton@chat.shakespeare.lit/cambridge'
   
to='earlofcambridge@shakespeare.lit/stabber'
   
type='unavailable'>
 
<x xmlns='http://jabber.org/protocol/muc#user'>
   
<item affiliation='outcast' role='none'>
     
<actor nick='The ♚'/>
     
<reason>Treason</reason>
   
</item>
   
<status code='301'/>
 
</x>
</presence>

 

I can get the MUCItem affiliation and role attributes but was unable to get the actor nick's value since when

MUCItem.getActor() gives me a null value.

 

Any help would be appreciated.

 

Thanks!

 

JD

Outcomes