summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCatalin Badea <catalin.badea392@gmail.com>2012-07-01 08:50:37 (GMT)
committerCătălin Badea <catalin.badea392@gmail.com>2012-08-11 15:52:57 (GMT)
commite9c0208eb6800538eeb9664737cf88c9dae933e0 (patch)
tree8a7e0ef377ab83bb8cd960a537c070810762993f /Swift/Controllers/Chat/ChatController.cpp
parente117ec6c534e1b6bc3f1bcd18dadf2005672c38b (diff)
downloadswift-contrib-e9c0208eb6800538eeb9664737cf88c9dae933e0.zip
swift-contrib-e9c0208eb6800538eeb9664737cf88c9dae933e0.tar.bz2
Don't log outgoing MUC messages
Diffstat (limited to 'Swift/Controllers/Chat/ChatController.cpp')
-rw-r--r--Swift/Controllers/Chat/ChatController.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/Swift/Controllers/Chat/ChatController.cpp b/Swift/Controllers/Chat/ChatController.cpp
index e81cfe9..b0413af 100644
--- a/Swift/Controllers/Chat/ChatController.cpp
+++ b/Swift/Controllers/Chat/ChatController.cpp
@@ -353,4 +353,10 @@ boost::optional<boost::posix_time::ptime> ChatController::getMessageTimestamp(bo
return message->getTimestamp();
}
+void ChatController::logMessage(const std::string& message, const JID& fromJID, const JID& toJID, const boost::posix_time::ptime& timeStamp, bool isIncoming) {
+ if (historyController_) {
+ historyController_->addMessage(message, fromJID, toJID, timeStamp);
+ }
+}
+
}