summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swiften/Chat')
-rw-r--r--Swiften/Chat/ChatStateNotifier.cpp2
-rw-r--r--Swiften/Chat/UnitTest/ChatStateNotifierTest.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/Swiften/Chat/ChatStateNotifier.cpp b/Swiften/Chat/ChatStateNotifier.cpp
index cb7fa9a..6e0f458 100644
--- a/Swiften/Chat/ChatStateNotifier.cpp
+++ b/Swiften/Chat/ChatStateNotifier.cpp
@@ -84,7 +84,7 @@ void ChatStateNotifier::addChatStateRequest(Message::ref message) {
void ChatStateNotifier::handleCapsChanged(const JID& jid) {
if (jid == contact_) {
DiscoInfo::ref caps = entityCapsManager_->getCaps(contact_);
- bool hasCSN = caps && caps->hasFeature(ChatState::getFeatureNamespace());
+ bool hasCSN = caps && caps->hasFeature(DiscoInfo::ChatStatesFeature);
contactHas85Caps_ = hasCSN;
}
}
diff --git a/Swiften/Chat/UnitTest/ChatStateNotifierTest.cpp b/Swiften/Chat/UnitTest/ChatStateNotifierTest.cpp
index 8380330..00fc11d 100644
--- a/Swiften/Chat/UnitTest/ChatStateNotifierTest.cpp
+++ b/Swiften/Chat/UnitTest/ChatStateNotifierTest.cpp
@@ -132,7 +132,7 @@ public:
private:
void setContactHas85Caps() {
DiscoInfo::ref caps(new DiscoInfo());
- caps->addFeature(ChatState::getFeatureNamespace());
+ caps->addFeature(DiscoInfo::ChatStatesFeature);
entityCapsProvider->caps[JID("foo@bar.com/baz")] = caps;
entityCapsProvider->onCapsChanged(JID("foo@bar.com/baz"));
}