diff options
author | Kevin Smith <git@kismith.co.uk> | 2011-03-09 07:39:21 (GMT) |
---|---|---|
committer | Kevin Smith <git@kismith.co.uk> | 2011-03-09 07:40:58 (GMT) |
commit | 912dbcf226e361f23b82a77372038865ffebbd02 (patch) | |
tree | 17582ca97ca1d7bed5de3f7ff8aeb7b931537e1f /Swift/Controllers/XMPPEvents | |
parent | ba14801a660031f3a2ad06a2054fd8a6bc4b10b5 (diff) | |
download | swift-contrib-912dbcf226e361f23b82a77372038865ffebbd02.zip swift-contrib-912dbcf226e361f23b82a77372038865ffebbd02.tar.bz2 |
Fix marking notices as read.
Resolves: #775
Diffstat (limited to 'Swift/Controllers/XMPPEvents')
-rw-r--r-- | Swift/Controllers/XMPPEvents/EventController.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Swift/Controllers/XMPPEvents/EventController.cpp b/Swift/Controllers/XMPPEvents/EventController.cpp index 8e31d30..157be86 100644 --- a/Swift/Controllers/XMPPEvents/EventController.cpp +++ b/Swift/Controllers/XMPPEvents/EventController.cpp @@ -30,6 +30,9 @@ void EventController::handleIncomingEvent(boost::shared_ptr<StanzaEvent> sourceE boost::shared_ptr<ErrorEvent> errorEvent = boost::dynamic_pointer_cast<ErrorEvent>(sourceEvent); if ((messageEvent && messageEvent->isReadable()) || subscriptionEvent || errorEvent) { events_.push_back(sourceEvent); + if (sourceEvent->getConcluded()) { + handleEventConcluded(sourceEvent); + } sourceEvent->onConclusion.connect(boost::bind(&EventController::handleEventConcluded, this, sourceEvent)); onEventQueueLengthChange(events_.size()); onEventQueueEventAdded(sourceEvent); |