diff options
author | Kevin Smith <git@kismith.co.uk> | 2010-09-18 20:58:48 (GMT) |
---|---|---|
committer | Kevin Smith <git@kismith.co.uk> | 2010-10-01 11:38:56 (GMT) |
commit | 5a91a3ef54c00a6d4d960725f2ff84b5e0c43cab (patch) | |
tree | de73910e121edc91f6eec2a9af863b7be8d352e3 /Swiften/Chat/UnitTest | |
parent | 5166d2def025a4fb1e3c4a723d90dc82669b36ee (diff) | |
download | swift-contrib-5a91a3ef54c00a6d4d960725f2ff84b5e0c43cab.zip swift-contrib-5a91a3ef54c00a6d4d960725f2ff84b5e0c43cab.tar.bz2 |
Use caps for enabling chat state notifications.
Resolves: #93
Diffstat (limited to 'Swiften/Chat/UnitTest')
-rw-r--r-- | Swiften/Chat/UnitTest/ChatStateNotifierTest.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Swiften/Chat/UnitTest/ChatStateNotifierTest.cpp b/Swiften/Chat/UnitTest/ChatStateNotifierTest.cpp index 712ba10..2fa4c26 100644 --- a/Swiften/Chat/UnitTest/ChatStateNotifierTest.cpp +++ b/Swiften/Chat/UnitTest/ChatStateNotifierTest.cpp @@ -114,7 +114,11 @@ public: void testContactShouldReceiveStates_ActiveOverrideOff() { notifier_->setContactHas85Caps(true); notifier_->receivedMessageFromContact(false); - CPPUNIT_ASSERT_EQUAL(false, notifier_->contactShouldReceiveStates()); + /* I originally read the MUST NOT send after receiving without Active and + * thought this should check for false, but I later found it was OPTIONAL + * (MAY) behaviour only for if you didn't receive caps. + */ + CPPUNIT_ASSERT_EQUAL(true, notifier_->contactShouldReceiveStates()); } |