mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-12-24 11:38:00 +01:00
Merge pull request #607 from guusdk/SMACK-945_Actor-nick-in-XML
SMACK-945: MUC Item actor's nick to XML
This commit is contained in:
commit
9a87643429
1 changed files with 5 additions and 2 deletions
|
@ -169,8 +169,11 @@ public class MUCItem implements NamedElement {
|
|||
xml.optAttribute("role", getRole());
|
||||
xml.rightAngleBracket();
|
||||
xml.optElement("reason", getReason());
|
||||
if (getActor() != null) {
|
||||
xml.halfOpenElement("actor").attribute("jid", getActor()).closeEmptyElement();
|
||||
if (getActor() != null || getActorNick() != null) {
|
||||
xml.halfOpenElement("actor");
|
||||
xml.optAttribute("jid", getActor());
|
||||
xml.optAttribute("nick", getActorNick());
|
||||
xml.closeEmptyElement();
|
||||
}
|
||||
xml.closeElement(Stanza.ITEM);
|
||||
return xml;
|
||||
|
|
Loading…
Reference in a new issue