summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCatalin Badea <catalin.badea392@gmail.com>2012-07-01 21:47:54 (GMT)
committerCătălin Badea <catalin.badea392@gmail.com>2012-08-11 15:52:57 (GMT)
commit80d2797f246e32edce4083ed7f86389a6c358d43 (patch)
treeef5fec2085c44572335811be0560c43b3d6401b1 /Swift/Controllers/HistoryController.cpp
parent5b030224c25dcb7e0f8dabe9ba80cc6d6397320b (diff)
downloadswift-contrib-80d2797f246e32edce4083ed7f86389a6c358d43.zip
swift-contrib-80d2797f246e32edce4083ed7f86389a6c358d43.tar.bz2
update history window on new message
Diffstat (limited to 'Swift/Controllers/HistoryController.cpp')
-rw-r--r--Swift/Controllers/HistoryController.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/Swift/Controllers/HistoryController.cpp b/Swift/Controllers/HistoryController.cpp
index a25c40f..5bd4ffa 100644
--- a/Swift/Controllers/HistoryController.cpp
+++ b/Swift/Controllers/HistoryController.cpp
@@ -22,6 +22,7 @@ HistoryController::~HistoryController() {
void HistoryController::addMessage(const std::string& message, const JID& fromJID, const JID& toJID, bool isGroupChat, const boost::posix_time::ptime& timeStamp) {
HistoryMessage historyMessage(message, fromJID, toJID, isGroupChat, timeStamp);
localHistory_->addMessage(historyMessage);
+ onNewMessage(historyMessage);
}
std::vector<HistoryMessage> HistoryController::getMessages(const JID& selfJID, const JID& contactJID, bool isGroupChat) const {