diff options
author | Catalin Badea <catalin.badea392@gmail.com> | 2012-07-01 08:50:37 (GMT) |
---|---|---|
committer | Cătălin Badea <catalin.badea392@gmail.com> | 2012-08-11 15:52:57 (GMT) |
commit | e9c0208eb6800538eeb9664737cf88c9dae933e0 (patch) | |
tree | 8a7e0ef377ab83bb8cd960a537c070810762993f /Swift/Controllers/Chat/ChatController.cpp | |
parent | e117ec6c534e1b6bc3f1bcd18dadf2005672c38b (diff) | |
download | swift-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.cpp | 6 |
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); + } +} + } |