aboutsummaryrefslogtreecommitdiff
path: root/src/base/QXmppPresence.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/base/QXmppPresence.cpp')
-rw-r--r--src/base/QXmppPresence.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/base/QXmppPresence.cpp b/src/base/QXmppPresence.cpp
index 42143b10..e5821068 100644
--- a/src/base/QXmppPresence.cpp
+++ b/src/base/QXmppPresence.cpp
@@ -318,6 +318,8 @@ void QXmppPresence::Status::setTypeFromStr(const QString& str)
m_type = QXmppPresence::Status::DND;
else if(str == "xa")
m_type = QXmppPresence::Status::XA;
+ else if(str == "invisible")
+ m_type = QXmppPresence::Status::Invisible;
else {
qWarning("QXmppPresence::Status::setTypeFromStr() invalid input string type %s",
qPrintable(str));
@@ -341,6 +343,8 @@ QString QXmppPresence::Status::getTypeStr() const
return "dnd";
case QXmppPresence::Status::Chat:
return "chat";
+ case QXmppPresence::Status::Invisible:
+ return "invisible";
default:
qWarning("QXmppPresence::Status::getTypeStr() invalid type %d",
(int)m_type);