From 8cd2cc3660a4af19ae74b7271571e7e2c3a3e35c Mon Sep 17 00:00:00 2001 From: Kevin Smith Date: Sun, 10 Jul 2011 12:35:24 +0100 Subject: Don't include readable events (i.e. chat messages) in the Notices view Release-Notes: The Notices tab will no longer record messages that're being shown in chat windows. Instead the Chats tab will keep track of conversations. diff --git a/Swift/Controllers/EventWindowController.cpp b/Swift/Controllers/EventWindowController.cpp index fbe9a8a..47554ce 100644 --- a/Swift/Controllers/EventWindowController.cpp +++ b/Swift/Controllers/EventWindowController.cpp @@ -27,8 +27,11 @@ void EventWindowController::handleEventQueueEventAdded(boost::shared_ptrgetConcluded()) { handleEventConcluded(event); } else { - event->onConclusion.connect(boost::bind(&EventWindowController::handleEventConcluded, this, event)); - window_->addEvent(event, true); + boost::shared_ptr message = boost::dynamic_pointer_cast(event); + if (!(message && message->isReadable())) { + event->onConclusion.connect(boost::bind(&EventWindowController::handleEventConcluded, this, event)); + window_->addEvent(event, true); + } } } -- cgit v0.10.2-6-g49f6