aboutsummaryrefslogtreecommitdiff
path: root/source/QXmppVCard.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/QXmppVCard.cpp')
-rw-r--r--source/QXmppVCard.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/QXmppVCard.cpp b/source/QXmppVCard.cpp
index 55aa3b34..d23711c1 100644
--- a/source/QXmppVCard.cpp
+++ b/source/QXmppVCard.cpp
@@ -102,6 +102,8 @@ void QXmppVCard::toXmlElementFromChild(QXmlStreamWriter *writer) const
writer->writeStartElement("vCard");
helperToXmlAddAttribute(writer,"xmlns", ns_vcard);
helperToXmlAddTextElement(writer, "FN", getFullName());
+ if(!getNickname().isEmpty())
+ helperToXmlAddTextElement(writer, "NICKNAME", getNickName());
if(!getPhoto().isEmpty())
{