mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-22 20:12:07 +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.optAttribute("role", getRole());
|
||||||
xml.rightAngleBracket();
|
xml.rightAngleBracket();
|
||||||
xml.optElement("reason", getReason());
|
xml.optElement("reason", getReason());
|
||||||
if (getActor() != null) {
|
if (getActor() != null || getActorNick() != null) {
|
||||||
xml.halfOpenElement("actor").attribute("jid", getActor()).closeEmptyElement();
|
xml.halfOpenElement("actor");
|
||||||
|
xml.optAttribute("jid", getActor());
|
||||||
|
xml.optAttribute("nick", getActorNick());
|
||||||
|
xml.closeEmptyElement();
|
||||||
}
|
}
|
||||||
xml.closeElement(Stanza.ITEM);
|
xml.closeElement(Stanza.ITEM);
|
||||||
return xml;
|
return xml;
|
||||||
|
|
Loading…
Reference in a new issue